]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Bugfix for formatting of floating point numbers which could lead to invalid PDFs.
authorJeremias Maerki <jeremias@apache.org>
Fri, 4 Jun 2010 09:03:57 +0000 (09:03 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 4 Jun 2010 09:03:57 +0000 (09:03 +0000)
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
status.xml

index 3c103f3f2993e837fe7a55db679584898160d251..5bc648ced1cefe085b6c1506832365ff55a5d970 100644 (file)
@@ -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");
         }
index bac90b3ea46a0ed657a6668be0b3afcdd64b6e8c..f309c8f453baf8a2eb2712089323a556112cea6c 100644 (file)
@@ -58,6 +58,9 @@
       documents. Example: the fix of marks layering will be such a case when it's done.
     -->
     <release version="FOP Trunk" date="TBD">
+      <action context="Renderers" dev="JM" type="fix">
+        Bugfix for formatting of floating point numbers which could lead to invalid PDFs.
+      </action>
       <action context="Renderers" dev="JM" type="fix">
         Added a save/restoreGraphicsState pair for the initial coordinate system in PDF output
         for easier post-processing.