aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/pdf
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2010-08-17 06:56:46 +0000
committerJeremias Maerki <jeremias@apache.org>2010-08-17 06:56:46 +0000
commit067328663cf4e1a2a35b0a2bc4969dd87a64d41e (patch)
tree8924b731a3a1982cd3c1b7dfbfb5545c31f05432 /src/java/org/apache/fop/render/pdf
parent61df4e0806c6dc170e628ce00705a986e16aa084 (diff)
downloadxmlgraphics-fop-067328663cf4e1a2a35b0a2bc4969dd87a64d41e.tar.gz
xmlgraphics-fop-067328663cf4e1a2a35b0a2bc4969dd87a64d41e.zip
Resolved conflict (ClassCastException) with named destinations which in contrast to embedded files adds single objects (producing two values) to the kids array instead of a key/value pairs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@986203 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pdf')
-rw-r--r--src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java b/src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java
index b7ad9cf71..ae205a1e5 100644
--- a/src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java
+++ b/src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java
@@ -48,6 +48,7 @@ import org.apache.fop.pdf.PDFConformanceException;
import org.apache.fop.pdf.PDFDictionary;
import org.apache.fop.pdf.PDFDocument;
import org.apache.fop.pdf.PDFEmbeddedFile;
+import org.apache.fop.pdf.PDFEmbeddedFiles;
import org.apache.fop.pdf.PDFEncryptionManager;
import org.apache.fop.pdf.PDFEncryptionParams;
import org.apache.fop.pdf.PDFFileSpec;
@@ -55,7 +56,6 @@ import org.apache.fop.pdf.PDFICCBasedColorSpace;
import org.apache.fop.pdf.PDFICCStream;
import org.apache.fop.pdf.PDFInfo;
import org.apache.fop.pdf.PDFMetadata;
-import org.apache.fop.pdf.PDFNameTreeNode;
import org.apache.fop.pdf.PDFNames;
import org.apache.fop.pdf.PDFNumsArray;
import org.apache.fop.pdf.PDFOutputIntent;
@@ -463,9 +463,9 @@ class PDFRenderingUtil implements PDFConfigurationConstants {
this.pdfDoc.registerObject(fileSpec);
//Make sure there is an EmbeddedFiles in the Names dictionary
- PDFNameTreeNode embeddedFiles = names.getEmbeddedFiles();
+ PDFEmbeddedFiles embeddedFiles = names.getEmbeddedFiles();
if (embeddedFiles == null) {
- embeddedFiles = new PDFNameTreeNode();
+ embeddedFiles = new PDFEmbeddedFiles();
this.pdfDoc.assignObjectNumber(embeddedFiles);
this.pdfDoc.addTrailerObject(embeddedFiles);
names.setEmbeddedFiles(embeddedFiles);