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/qpdf-job.cc | |
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/qpdf-job.cc')
-rw-r--r-- | examples/qpdf-job.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/qpdf-job.cc b/examples/qpdf-job.cc index be868a17..99b853ea 100644 --- a/examples/qpdf-job.cc +++ b/examples/qpdf-job.cc @@ -44,6 +44,7 @@ main(int argc, char* argv[]) ->endPages() ->linearize() ->staticId() // for testing only + ->compressStreams("n") // avoid dependency on zlib output ->checkConfiguration(); j.run(); std::cout << "out1 status: " << j.getExitCode() << std::endl; @@ -63,6 +64,7 @@ main(int argc, char* argv[]) "1", "--", "--static-id", + "--compress-streams=n", // avoid dependency on zlib output nullptr}; QPDFJob j; j.initializeFromArgv(new_argv); @@ -81,6 +83,7 @@ main(int argc, char* argv[]) "outputFile": "out3.pdf", "staticId": "", "linearize": "", + "compressStreams": "n", "pages": [ { "file": ".", |