From 07f40bd25442f25c0af948ae1b0dac7fdff1688c Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Fri, 12 Feb 2021 03:44:12 -0500 Subject: QUtil::double_to_string: trim trailing zeroes with option to disable --- manual/qpdf-manual.xml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) (limited to 'manual') diff --git a/manual/qpdf-manual.xml b/manual/qpdf-manual.xml index c14d0bdf..241431b9 100644 --- a/manual/qpdf-manual.xml +++ b/manual/qpdf-manual.xml @@ -5068,6 +5068,21 @@ print "\n"; Library Behavior Changes + + + Note: the changes in this section cause differences in + output in some cases. These differences change the syntax of + the PDF but do not change the semantics (meaning). I make a + strong effort to avoid gratuitous changes in qpdf's output + so that qpdf changes don't break people's tests. In this + case, the changes significantly improve the readability of + the generated PDF and don't affect any output that's + generated by simple transformation. If you are annoyed by + having to update test files, please rest assured that + changes like this have been and will continue to be rare + events. + + QPDFObjectHandle::newUnicodeString now @@ -5076,7 +5091,19 @@ print "\n"; reduces needless encoding in UTF-16 of strings that can be encoded in ASCII. This change may cause qpdf to generate different output than before when form field values are set - using QPDFFormFieldObjectHelper. + using QPDFFormFieldObjectHelper but + does not change the meaning of the output. + + + + + The code that places form XObjects and also the code that + flattens rotations trim trailing zeroes from real numbers + that they calculate. This causes slight (but semantically + equivalent) differences in generated appearance streams and + form XObject invocations in overlay/underlay code or in user + code that calls the methods that place form XObjects on a + page. @@ -5184,6 +5211,15 @@ print "\n"; contents of a file through a pipeline as binary data. + + + Add option to QUtil::double_to_string + to trim trailing zeroes, which is on by default. Within the + qpdf library, this causes changes to output the from code + that places form XObjects and the code that flattens + rotations. + + -- cgit v1.2.3-54-g00ecf