aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/PDFArray.java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-05-11 08:47:11 +0000
committerJeremias Maerki <jeremias@apache.org>2007-05-11 08:47:11 +0000
commit0266898d9599fb55792ed321acfdf77a53c6c22d (patch)
tree9b8b9818d919172905d15a010a549a4a65ec0f12 /src/java/org/apache/fop/pdf/PDFArray.java
parentb2fd48501bf49caef7f721944484dfe3bad2387f (diff)
downloadxmlgraphics-fop-0266898d9599fb55792ed321acfdf77a53c6c22d.tar.gz
xmlgraphics-fop-0266898d9599fb55792ed321acfdf77a53c6c22d.zip
Bugfix: Integers were not correctly formatted in PDF. This fixes a problem with embedded fonts.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@537129 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFArray.java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFArray.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFArray.java b/src/java/org/apache/fop/pdf/PDFArray.java
index 0e7a2b986..abeed1d86 100644
--- a/src/java/org/apache/fop/pdf/PDFArray.java
+++ b/src/java/org/apache/fop/pdf/PDFArray.java
@@ -127,11 +127,7 @@ public class PDFArray extends PDFObject {
p.append(" ");
}
Object obj = this.values.get(i);
- if (obj instanceof PDFWritable) {
- p.append(((PDFWritable)obj).toInlinePDFString());
- } else {
- p.append("(").append(obj).append(")");
- }
+ formatObject(obj, p);
}
p.append("]");
if (hasObjectNumber()) {