]> source.dussan.org Git - xmlgraphics-fop.git/commit
Improvements/Bugfixes for PDF attachments (embedded files):
authorJeremias Maerki <jeremias@apache.org>
Mon, 16 Aug 2010 09:39:34 +0000 (09:39 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 16 Aug 2010 09:39:34 +0000 (09:39 +0000)
commitcb9936b4c92ee6f4dede21dbd2fe6d3395b9c31c
tree4e022c5663696161f5d32fc858c633d4390ae891
parentefea814f6945dd13595a4d6767ebf6b57f68df1b
Improvements/Bugfixes for PDF attachments (embedded files):
- Acrobat doesn't like indirect objects for the /Length entry of embedded files (make on-the-fly generation more easily configurable).
- Added the /Size entry for embedded files to keep Acrobat happy.
- Moved the embedded files' Names tree to the end of the PDF to be on the safe side.
- Made hyperlinks to embedded files work by using a JavaScript Action (thanks to Matthias Reischenbacher for that idea).
- Added sorting to the names tree node because Acrobat relies on it.
- Added some filename manipulation code to work around possible encoding problems with special characters in the filenames.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985843 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/fop/pdf/AbstractPDFStream.java
src/java/org/apache/fop/pdf/PDFArray.java
src/java/org/apache/fop/pdf/PDFEmbeddedFile.java
src/java/org/apache/fop/pdf/PDFFactory.java
src/java/org/apache/fop/pdf/PDFFileSpec.java
src/java/org/apache/fop/pdf/PDFGoToRemote.java
src/java/org/apache/fop/pdf/PDFJavaScriptLaunchAction.java [new file with mode: 0644]
src/java/org/apache/fop/pdf/PDFNameTreeNode.java
src/java/org/apache/fop/pdf/PDFText.java
src/java/org/apache/fop/render/pdf/PDFRenderingUtil.java