Commit 5f02c7c9e779a761b8324427c39e85429e25ba29
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.
Showing
3 changed files
with
1 additions
and
0 deletions
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
examples/qtest/filter-tokens/out.pdf