aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/render/pdf/CTMHelper.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/pdf/CTMHelper.java b/src/java/org/apache/fop/render/pdf/CTMHelper.java
index 4a3103a01..ff09cdde6 100644
--- a/src/java/org/apache/fop/render/pdf/CTMHelper.java
+++ b/src/java/org/apache/fop/render/pdf/CTMHelper.java
@@ -51,6 +51,7 @@
package org.apache.fop.render.pdf;
import org.apache.fop.area.CTM;
+import org.apache.fop.pdf.PDFNumber;
/**
* CTMHelper converts FOP transformation matrixis to those
@@ -84,9 +85,12 @@ public final class CTMHelper {
final double matrix[] = toPDFArray(sourceMatrix);
- return matrix[0] + " " + matrix[1] + " "
- + matrix[2] + " " + matrix[3] + " "
- + matrix[4] + " " + matrix[5];
+ return PDFNumber.doubleOut(matrix[0], 8) + " " +
+ PDFNumber.doubleOut(matrix[1], 8) + " " +
+ PDFNumber.doubleOut(matrix[2], 8) + " " +
+ PDFNumber.doubleOut(matrix[3], 8) + " " +
+ PDFNumber.doubleOut(matrix[4], 8) + " " +
+ PDFNumber.doubleOut(matrix[5], 8);
}
/**