diff options
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFName.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFName.java b/src/java/org/apache/fop/pdf/PDFName.java index 6ad6ff9eb..26d449591 100644 --- a/src/java/org/apache/fop/pdf/PDFName.java +++ b/src/java/org/apache/fop/pdf/PDFName.java @@ -85,7 +85,7 @@ public class PDFName extends PDFObject { writer.write(getObjectID()); } - outputInline(stream, writer); + writer.write(toString()); if (hasObjectNumber()) { writer.write("\nendobj\n"); @@ -97,7 +97,11 @@ public class PDFName extends PDFObject { /** {@inheritDoc} */ public void outputInline(OutputStream out, Writer writer) throws IOException { - writer.write(toString()); + if (hasObjectNumber()) { + writer.write(referencePDF()); + } else { + writer.write(toString()); + } } } |