diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-12-20 19:37:21 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-12-20 21:46:20 +0100 |
commit | 4ee393d1fa5424bc25952580b177f572e58920db (patch) | |
tree | 00ee9eb00ec6225dbbb1869f0a5ee41eb563f317 /examples/qpdfjob-c.c | |
parent | 7e679ab8b68a38aae8374ef28f999afd94bf5124 (diff) | |
download | qpdf-4ee393d1fa5424bc25952580b177f572e58920db.tar.zst |
Remove compression from linearization tests where possible
By combining --linearize with --compress-streams=n, we ensure that no
new compressed data will appear in linearized output, which makes the
output independent of zlib's output. There are other tests to ensure
that linearization works correctly with compression. This commit
involves changing some test outputs and test code as well just
updating test suites.
Diffstat (limited to 'examples/qpdfjob-c.c')
-rw-r--r-- | examples/qpdfjob-c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/qpdfjob-c.c b/examples/qpdfjob-c.c index 62528392..6dd68283 100644 --- a/examples/qpdfjob-c.c +++ b/examples/qpdfjob-c.c @@ -19,7 +19,7 @@ main(int argc, char* argv[]) { char* infile = NULL; char* outfile = NULL; - char const* new_argv[6]; + char const* new_argv[7]; int r = 0; char* p = 0; @@ -43,7 +43,8 @@ main(int argc, char* argv[]) new_argv[2] = outfile; new_argv[3] = "--linearize"; new_argv[4] = "--static-id"; /* for testing only */ - new_argv[5] = NULL; + new_argv[5] = "--compress-streams=n"; /* avoid dependency on zlib output */ + new_argv[6] = NULL; /* See qpdf-job.cc for a C++ example of using the json interface. To use that from C just like * the argv one, call qpdfjob_run_from_json instead and pass the json string as a single char |