/[Apache-SVN]
ViewVC logotype

Revision 378482


Jump to revision: Previous Next
Author: jeremias
Date: Fri Feb 17 10:57:15 2006 UTC (18 years, 4 months ago)
Changed paths: 27
Log Message:
Initial support for XMP metadata (PDF 1.4) under fo:declarations. Both 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.

Changed paths

Path Details
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/ElementMapping.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/ElementMappingRegistry.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FONode.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOTreeBuilder.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/ added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/RDFElement.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/RDFElementMapping.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/XMPConstants.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/XMPElementMapping.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/XMPMetaElement.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/xmp/XMPMetadata.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFDocument.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFactory.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFFilterList.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFInfo.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFMetadata.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/pdf/PDFRoot.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/pdf/PDFRenderer.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/ps/extensions/PSExtensionHandler.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/render/xml/XMLXMLHandler.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/util/ContentHandlerFactory.java modified , text changed
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOM2SAX.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/util/DOMBuilderContentHandlerFactory.java added
Directoryxmlgraphics/fop/trunk/src/java/org/apache/fop/util/DelegatingContentHandler.java added
Directoryxmlgraphics/fop/trunk/status.xml modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26