Commit 5f02c7c9e779a761b8324427c39e85429e25ba29

Authored by Jay Berkenbilt
1 parent 32ae60b6

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.
examples/pdf-filter-tokens.cc
@@ -204,6 +204,7 @@ main(int argc, char* argv[]) @@ -204,6 +204,7 @@ main(int argc, char* argv[])
204 204
205 QPDFWriter w(pdf, outfilename); 205 QPDFWriter w(pdf, outfilename);
206 w.setStaticID(true); // for testing only 206 w.setStaticID(true); // for testing only
  207 + w.setQDFMode(true);
207 w.write(); 208 w.write();
208 } catch (std::exception& e) { 209 } catch (std::exception& e) {
209 std::cerr << whoami << ": " << e.what() << std::endl; 210 std::cerr << whoami << ": " << e.what() << std::endl;
examples/qtest/filter-tokens/in.pdf
1 Binary files a/examples/qtest/filter-tokens/in.pdf and b/examples/qtest/filter-tokens/in.pdf differ 1 Binary files a/examples/qtest/filter-tokens/in.pdf and b/examples/qtest/filter-tokens/in.pdf differ
examples/qtest/filter-tokens/out.pdf
1 Binary files a/examples/qtest/filter-tokens/out.pdf and b/examples/qtest/filter-tokens/out.pdf differ 1 Binary files a/examples/qtest/filter-tokens/out.pdf and b/examples/qtest/filter-tokens/out.pdf differ