From 067328663cf4e1a2a35b0a2bc4969dd87a64d41e Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Tue, 17 Aug 2010 06:56:46 +0000 Subject: 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 --- src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/java/org/apache/fop/render/pdf') 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); -- cgit v1.2.3