From: Jeremias Maerki Date: Fri, 4 Jun 2010 09:03:57 +0000 (+0000) Subject: Bugfix for formatting of floating point numbers which could lead to invalid PDFs. X-Git-Tag: fop-1_0~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ee77618596ee10c97e368add8f7a883d3cf0c8a;p=xmlgraphics-fop.git Bugfix for formatting of floating point numbers which could lead to invalid PDFs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@951333 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/pdf/PDFNumber.java b/src/java/org/apache/fop/pdf/PDFNumber.java index 3c103f3f2..5bc648ced 100644 --- a/src/java/org/apache/fop/pdf/PDFNumber.java +++ b/src/java/org/apache/fop/pdf/PDFNumber.java @@ -88,7 +88,7 @@ public class PDFNumber extends PDFObject { if (hasObjectNumber()) { sb.append(getObjectID()); } - sb.append(getNumber().toString()); + sb.append(doubleOut(getNumber().doubleValue(), 10)); if (hasObjectNumber()) { sb.append("\nendobj\n"); } diff --git a/status.xml b/status.xml index bac90b3ea..f309c8f45 100644 --- a/status.xml +++ b/status.xml @@ -58,6 +58,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Bugfix for formatting of floating point numbers which could lead to invalid PDFs. + Added a save/restoreGraphicsState pair for the initial coordinate system in PDF output for easier post-processing.