diff options
Diffstat (limited to 'examples/pdf-double-page-size.cc')
-rw-r--r-- | examples/pdf-double-page-size.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/examples/pdf-double-page-size.cc b/examples/pdf-double-page-size.cc index 8a1867aa..2236265b 100644 --- a/examples/pdf-double-page-size.cc +++ b/examples/pdf-double-page-size.cc @@ -51,6 +51,15 @@ int main(int argc, char* argv[]) whoami += 3; } + // For test suite + bool static_id = false; + if ((argc > 1) && (strcmp(argv[1], " --static-id") == 0)) + { + static_id = true; + --argc; + ++argv; + } + if (! ((argc == 3) || (argc == 4))) { usage(); @@ -88,7 +97,7 @@ int main(int argc, char* argv[]) // Write out a new file QPDFWriter w(qpdf, outfilename); - if (QUtil::get_env("IN_TESTSUITE")) + if (static_id) { // For the test suite, uncompress streams and use static // IDs. |