From 4ee77618596ee10c97e368add8f7a883d3cf0c8a Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 4 Jun 2010 09:03:57 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/pdf/PDFNumber.java | 2 +- status.xml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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. -- 2.39.5