aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/PDFDocument.java
Commit message (Collapse)AuthorAgeFilesLines
* Transition source to standard maven hierarchy (initial).Glenn Adams2016-03-031-1235/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1733433 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2445: Merge PDF Linearization branchSimon Steiner2015-02-241-22/+79
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1661887 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2406: Error when image next to pdfSimon Steiner2014-08-191-4/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1618887 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2395: PDF encryption does not work when PDF version is set in FOP ↵Luis Bernardo2014-07-181-1/+3
| | | | | | config; change suggested by Seifeddine Dridi. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1611834 13f79535-47bb-0310-9956-ffa450edef68
* Allow merging of fontsSimon Steiner2014-06-051-0/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_FontMerging@1600606 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2301: Enable support for PDF sub-page transitions.Glenn Adams2013-11-011-1/+53
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1537948 13f79535-47bb-0310-9956-ffa450edef68
* FOP-2248: add support for AES 256 PDF encryptionLuis Bernardo2013-05-181-3/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1484190 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 53778: When PDF accessibility is enabled, the contents for the ↵Vincent Hennebert2012-08-241-22/+6
| | | | | | different regions must appear in the proper order in the structure tree. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1376923 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #53639: When PDF accessibility is enabled, the Scope attribute must ↵Vincent Hennebert2012-08-021-1/+19
| | | | | | be present in the structure tree for table header elements. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1368420 13f79535-47bb-0310-9956-ffa450edef68
* Removed URI resolving class that are no longer needed and handled data URIsMehdi Houshmand2012-06-141-19/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_URI_Unification@1350248 13f79535-47bb-0310-9956-ffa450edef68
* Added support for PDF object streams.Temp_PDF_ObjectStreamsVincent Hennebert2012-03-211-183/+207
| | | | | | | | When accessibility is enabled and PDF version 1.5 selected, the structure tree will be stored in object streams in order to reduce the size of the final PDF. This can lead to file reductions by up to 75% git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_PDF_ObjectStreams@1303431 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #51385: Added configuration option to set the version of the output ↵Vincent Hennebert2012-03-191-21/+39
| | | | | | | | | PDF document. Patch by Mehdi Houshmand, applied with minor modifications git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1302518 13f79535-47bb-0310-9956-ffa450edef68
* enable MultipleVariableDeclarations rule; fix violationsGlenn Adams2012-03-021-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1296483 13f79535-47bb-0310-9956-ffa450edef68
* Merged in Temp_ImproveAccessibilityPeter Hancock2012-02-101-19/+0
|\ | | | | | | | | | | | | revs 1187234, 1188205, 1205935, 1236718, 1238313, 1240963 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1242848 13f79535-47bb-0310-9956-ffa450edef68
| * Removed the DOM representation of the structure tree.Vincent Hennebert2011-11-241-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The structure tree is now directly converted into corresponding PDF objects. When going the IF route, the structure tree is stored in the form of SAX events that will be re-played when it's time to stream them into the output. This may still change. * Extracted RFC3066 methods from XMLUtil into new LanguageTags class that can be re-used in a non-XML context. * Dropped support for accessibility in the old Area Tree XML. * Added support for the xml:lang property on fo:root, so that the global language can be set for the document without retrieving the language from the first page-sequence. * Renamed StructureTreeBuilder into more appropriate StructureTreeEventHandler (same for applicable sub-classes) * Renamed StructureTreeBuildingFOEventHandler into FO2StructureTreeConverter and added test case * Added test cases for classes in the StructureTreeEventHandler hierarchy git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_ImproveAccessibility@1205935 13f79535-47bb-0310-9956-ffa450edef68
* | Bugzilla #51644:Chris Bowditch2012-01-061-14/+10
|/ | | | | | | Tagged PDF performance improvement + tests Submitted by: Mehdi Houshmand git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1228243 13f79535-47bb-0310-9956-ffa450edef68
* Added support for 128bit encryption in PDF output. Based on work by Michael ↵Vincent Hennebert2011-08-081-27/+21
| | | | | | Rubin. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1154998 13f79535-47bb-0310-9956-ffa450edef68
* Merge from Trunk, revisions 965390 to 1060234.Jeremias Maerki2011-01-181-7/+6
|\ | | | | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@1060241 13f79535-47bb-0310-9956-ffa450edef68
| * Bugfix for potential java.lang.IndexOutOfBoundsException in ↵Jeremias Maerki2010-08-181-3/+1
| | | | | | | | | | | | PDFDocument.outputTrailer(). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@986650 13f79535-47bb-0310-9956-ffa450edef68
| * Bugzilla #49733:Jeremias Maerki2010-08-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved compilation (safe one), Checkstyle and many Javadoc warnings. Submitted by: Glenn Adams <glenn.at.skynav.com> Changes to patch: - Restored the deprecated Graphics2DAdapter method (to be removed after Barcode4J 2.1 is released). - Restored Renderer.startPageSequence(LineArea) pending discussion about removal. - build.xml: set max VM to 1024MB instead of 2048MB to allow for 32-bit JVMs. - build.xml: restored longer taskdef names. - Restored Checkstyle 4 file for people running older IDEs. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@985537 13f79535-47bb-0310-9956-ffa450edef68
* | Bugfix for StringIndexOutOfBoundsException when the PDF grows beyond 2GB.Jeremias Maerki2010-08-131-6/+9
|/ | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Color@985323 13f79535-47bb-0310-9956-ffa450edef68
* Extracted code related to logical structure out of PDFDocumentHandler and ↵Vincent Hennebert2009-10-121-0/+19
| | | | | | | | | | put it in its own PDFLogicalStructureHandler class. Vastly simplified the building of the structure tree in the same time. Fixed bug occurring when a block contains only one line of text: the generated PDF was illegal Fixed bug in the generation of the structural parent tree: values in a number tree must be indirect references (note: other number trees in the document may still be wrongly generated) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Accessibility@824407 13f79535-47bb-0310-9956-ffa450edef68
* equals implementation violated spec -> replaced with new contentEquals functionMaximilian Berger2009-09-151-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@815358 13f79535-47bb-0310-9956-ffa450edef68
* Oops, introduced a compile error with the previous commitAndreas L. Delmelle2008-12-021-10/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@722618 13f79535-47bb-0310-9956-ffa450edef68
* Minor changes; mostly code- and javadoc-aesthetics...Andreas L. Delmelle2008-12-021-220/+201
| | | | | | | | | | | Most notable: - made most member variables private (apart from objectCount, which is used by PDFFactory) - the number of fully qualified collection names warranted separate import statements - replaced a String concat with StringBuffer.append() - some javadoc nits, reduce space in single-line, add space in multi-line, added some @links ... git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@722613 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 45113:Andreas L. Delmelle2008-10-261-11/+24
| | | | | | | | | Added PDF /Launch action, which is used in case of references to URIs using the file:// protocol. Thanks to Alexander Stamenov (astamenov.AT.gmail.com) for the input! git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@708012 13f79535-47bb-0310-9956-ffa450edef68
* Fed up with all those trailing whitespaces. Let's remove them all (once... ↵Vincent Hennebert2008-07-241-15/+15
| | | | | | and for all?) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@679326 13f79535-47bb-0310-9956-ffa450edef68
* Possible NullPointerException avoidedAdrian Cumiskey2008-07-071-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@674468 13f79535-47bb-0310-9956-ffa450edef68
* Bugfix: Some string objects were not encrypted (for example in named ↵Jeremias Maerki2008-01-111-1/+18
| | | | | | | | destinations) I had to refactor the PDF library a little bit but since it only affects the inner API it shouldn't be a problem that I removed some methods which caused trouble because a didn't think about encryption when I worked on the PDF library last year. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@611114 13f79535-47bb-0310-9956-ffa450edef68
* Merged ↵Jeremias Maerki2007-10-261-10/+31
| | | | | | | | | | | https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_PDF_in_PDF (563130:HEAD) into Trunk. Adds generic structures in PDF so it is possible to embed external PDF documents, for example to support PDF files in fo:external-graphic for PDF output. See also: http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/200708.mbox/%3c20070806165027.5C59.DEV@jeremias-maerki.ch%3e I tried to keep the changes on the API of the PDF library minimal but there could still be some incompatibilities for anyone who uses it separately. This also adds support for dynamically registering an image handler. That's just a temporary solution until the image package redesign is done. But it works. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@588547 13f79535-47bb-0310-9956-ffa450edef68
* Removed newly introduced dependency from the PDF library to the area tree.Jeremias Maerki2007-05-071-62/+47
| | | | | | | Removed PDFDocument.setHasDestinations() (PDFDocument knows that already). Started to add some generic PDF data structures (array, dictionary). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@535883 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla #41434:Jeremias Maerki2007-05-011-3/+3
| | | | | | | Fix PDF Genaration for non-ASCII compatible locales. Submitted by: Martin Kögler <martin.koegler.at.brz.gv.at> git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@533986 13f79535-47bb-0310-9956-ffa450edef68
* Added sorting of the list of named destinations (necessary to have more than ↵Jay Bryant2007-04-111-13/+17
| | | | | | one destination in a document, unless you get lucky and have them in the proper order by coincidence) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@527380 13f79535-47bb-0310-9956-ffa450edef68
* - fix minor checkstyle issuesVincent Hennebert2007-04-031-1/+1
| | | | | | | | - add missing headers - add an entry in status.xml for the new named destinations feature git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@525078 13f79535-47bb-0310-9956-ffa450edef68
* changes to support named destinationsJay Bryant2007-04-011-1/+88
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524606 13f79535-47bb-0310-9956-ffa450edef68
* Changed license headers and updated NOTICE file according to: ↵Jeremias Maerki2006-07-281-5/+6
| | | | | | http://www.apache.org/legal/src-headers.html git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@426576 13f79535-47bb-0310-9956-ffa450edef68
* Added initial support for PDF/X-3:2003 (ISO 15930-6:2003(E)).Jeremias Maerki2006-06-141-34/+12
| | | | | | | | | | | Fixed bugs in PDF/A support: Transparency is now switched off and the CIDSet object is generated for CID fonts. PDF/A and PDF/X are now "profiles" (see PDFProfile) which are used to control the allowed, required and forbidden features in PDF. PDF/A-1b and PDF/X-3:2003 can both be activated simultaneously as they are compatible. For PDF/X, color handling has been improved a little (PDFColorSpace is now an interface, the old PDFColorSpace is now PDFDeviceColorSpace) and most importantly, the "DefaultRGB" color space is now mapped to the sRGB color space (for all colors in DeviceRGB) which ensures that all sRGB colors from XSL-FO are also sRGB colors in PDF which wasn't necessarily the case before. For PDF/X, added support for a custom, non-sRGB output profile because PDF/X requires a "Output Device Profile" (which sRGB is not). ICC profiles are now shared/cached among images. Added support for fox:conversion-mode="bitmap" in the PDFRenderer to handle SVGs with transparency when transparency is forbidden (PDF/X and PDF/A). Only drawback: the image is not combined with the background. An opaque bitmap with a white background is generated. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@414272 13f79535-47bb-0310-9956-ffa450edef68
* Improved JUnit report creation.Jeremias Maerki2006-04-051-1/+1
| | | | | | | | | | Added support for OutputIntent objects in PDF. When PDF/A-1b is activated OutputIntents are created and the sRGB color space is used by default (hardcoded for the moment for lack of better color infrastructure in FOP). The sRGB color profile from HP (covering sRGB IEC61966-2.1) is now embedded in fop.jar as a resource so the PDF library can embed it. The sRGB profile from the Sun JRE is much bigger. That's why it's not used. The Gladiator TrueType font (glb12.ttf) has been copied over from Batik and is used to verify PDF/A-1b's conformance checks. CMYK JPEG image added to test resources so PDF/A-1b color space checks can be performed. With the color space checks, support for PDF/A-1b is complete to the degree that FOP supports the creation of elements described in ISO 19005-1, except for the case where an embedded XMP packet is used in the fo:declarations element. In this case the metadata is not synchronized with the values in the Info PDF object which could lead to validation errors when checking for PDF/A-1b conformance. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@391624 13f79535-47bb-0310-9956-ffa450edef68
* More work on PDF/A-1:Jeremias Maerki2006-02-221-0/+27
| | | | | | | | | ID entry is now generated in the trailer. More conformance checks especially for fonts. PDF/A Identification Schema for XMP added. Almost finished. Only color space checking is left to do, I think. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@379798 13f79535-47bb-0310-9956-ffa450edef68
* Some explanations and warnings.Jeremias Maerki2006-02-171-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378564 13f79535-47bb-0310-9956-ffa450edef68
* XMP metadata generation from the PDFInfo object now conforms to PDF/A-1 ↵Jeremias Maerki2006-02-171-9/+45
| | | | | | | | | | (6.7.3 in ISO 19005-1:2005(E)). On PDFDocument, it is now possible to set the PDF-A mode which triggers conformance checks where necessary. The first PDF/A-1b conformance checks are now in the code. When conformance problems are detected, the new PDFConformanceException (subclass of RuntimeException since this would be a programmer error) is thrown. PDF Renderer got a setting (through rendering options and XML configuration) to set the PDF/A-1 mode. Default is "disabled". git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378560 13f79535-47bb-0310-9956-ffa450edef68
* Initial support for XMP metadata (PDF 1.4) under fo:declarations. Both ↵Jeremias Maerki2006-02-171-1/+17
| | | | | | | | | | | | | | | | xmpmeta and RDF elements can be used as root elements for XMP metadata. Extracted DOM2SAX functionality from XMLXMLHandler into utility class since it is now reused elsewhere. New DOMBuilderContentHandlerFactory is used to create ContentHandlers that build generic DOMs. New DelegatingContentHandler is a convenience base class modelled after XMLFilterImpl but as passive SAX receiver. It is used by DOMBuilderContentHandlerFactory. Refactored FOTreeBuilder. FO tree building is now in a special ContentHandler which can be replaced temporarily when handling foreign XML like SVG or XMP. Extension Elements wanting the set their own ContentHandlers (instead of using the standard FO tree building mechanism) return a non-null value in getContentHandlerFactory(). The old mechanism is still supported (MathML, Plan and Barcode4J still use that). However, SVG support is changed to use a ContentHandlerFactory. Extension elements for xmpmeta and RDF elements making use of the new DOM build-up using ContentHandlerFactory. XMP metadata is passed to the renderer as ExtensionAttachment to the document. Only PDFRenderer uses the XMP extension attachment at this time. The PDFRenderer automatically builds XMP metadata based on the basic metadata information in the PDFInfo object if no explicit XMP metadata has been added to the XSL-FO document. XMP metadata merging is not implemented because this would involve a more sophisticated XMP infrastructure. That also means that XMP metadata is not validated. It's passed into the PDF as is. The PDF library now provides the PDFMetadata class to embed XMP metadata in PDFs version >=1.4. stream contents use a special filter list which is initially empty, so non-PDF-aware XMP readers can extract (and optionally modify) the XMP metadata. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@378482 13f79535-47bb-0310-9956-ffa450edef68
* Updated from Jakarta Commons IO 1.0 to 1.1. CopyUtils.copy() becomes ↵Jeremias Maerki2005-11-141-2/+0
| | | | | | | | | IOUtils.copy() again. CopyUtils in 1.0 was not ideal design decision. Fixed most of the unappropriate System.err/System.out/Exception.printStackTrace(). Those that aren't fixed and are not legitimate calls (in main() methods etc.) are marked with a TODO item. Some Javadocs and style updates. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@344111 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2005-01-131-1/+1
| | | | | | | | | | Obtained from: Submitted by: Reviewed by: "starting-state" property implemented for fo:bookmark. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198265 13f79535-47bb-0310-9956-ffa450edef68
* Changed logging to use "static" loggers from Jakarta Commons Logging (via ↵Jeremias Maerki2004-04-021-21/+3
| | | | | | LogFactory). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197479 13f79535-47bb-0310-9956-ffa450edef68
* PR:Glen Mazza2004-03-311-13/+12
| | | | | | | | | | | | Obtained from: Submitted by: Reviewed by: Conversion of Avalon to Commons-Logger. (Will still need to update the examples, which I will take care of next; Jeremias will be modifying the PDF libraries for more efficient use of the CL loggers.) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197474 13f79535-47bb-0310-9956-ffa450edef68
* Applied Apache License Version 2.0 by following the instructions at ↵Jeremias Maerki2004-02-271-48/+16
| | | | | | http://www.apache.org/dev/apply-license.html. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197384 13f79535-47bb-0310-9956-ffa450edef68
* Add possibility to set creation date.Joerg Pietschmann2003-09-191-47/+76
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196924 13f79535-47bb-0310-9956-ffa450edef68
* javadoc changes to clean up gump warnings.William Victor Mote2003-04-241-33/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196335 13f79535-47bb-0310-9956-ffa450edef68
* Switch for disabling on-the-fly stream output (if something goes wrong. was ↵Jeremias Maerki2003-03-271-1369/+313
| | | | | | | | | | | tested with Acrobat and GhostScript) Factory methods moved to new PDFFactory class. More uniform and centralized registration of PDFObjects (a lot less redundancy!) Logging via Avalon Logger (Child PDFObjects get their logger via getDocumentSafely().getLogger()). git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@196172 13f79535-47bb-0310-9956-ffa450edef68