diff options
author | Jay Berkenbilt <ejb@ql.org> | 2023-05-20 18:21:22 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2023-05-20 20:52:19 +0200 |
commit | 5f02c7c9e779a761b8324427c39e85429e25ba29 (patch) | |
tree | 3e6af9ebfed3ec2e87af9b6f7f81b648a2c405ca /examples/pdf-filter-tokens.cc | |
parent | 32ae60b6d6c38a1d311b2380c63eabf21d4f9159 (diff) | |
download | qpdf-5f02c7c9e779a761b8324427c39e85429e25ba29.tar.zst |
Tweak pdf-filter-tokens to be less sensitive to floating point
Switch output to QDF for easier diffing
Simplify input image
Reduce decimal places
This works around an issue were, for certain versions, the mingw32
tests failed because of irrelevant floating point rounding issues in
the test output.
Diffstat (limited to 'examples/pdf-filter-tokens.cc')
-rw-r--r-- | examples/pdf-filter-tokens.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/pdf-filter-tokens.cc b/examples/pdf-filter-tokens.cc index a897ef65..fb6f542c 100644 --- a/examples/pdf-filter-tokens.cc +++ b/examples/pdf-filter-tokens.cc @@ -204,6 +204,7 @@ main(int argc, char* argv[]) QPDFWriter w(pdf, outfilename); w.setStaticID(true); // for testing only + w.setQDFMode(true); w.write(); } catch (std::exception& e) { std::cerr << whoami << ": " << e.what() << std::endl; |