aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2008-01-21 10:40:38 +0000
committerJeremias Maerki <jeremias@apache.org>2008-01-21 10:40:38 +0000
commitdaa5c136fe06ba0da6fc8b8b079b4d7ba6a813a6 (patch)
tree51c0469a906928674eb9081c432942fe75cb29ab /src/java
parentec59ecf8a78788e07c53c0791cb54e6f5c0e7084 (diff)
downloadxmlgraphics-fop-daa5c136fe06ba0da6fc8b8b079b4d7ba6a813a6.tar.gz
xmlgraphics-fop-daa5c136fe06ba0da6fc8b8b079b4d7ba6a813a6.zip
Correct inline writing when object has an object number.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@613835 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/pdf/PDFName.java8
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());
+ }
}
}