GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing xmlgraphics.apache.org — Apache FOP™: Metadata Apache FOP™¶
Apache® XML Graphics¶Sub Projects¶Search Apache XML Graphics¶ApacheCon N. America¶Hope to see you there! ApacheCon Europe¶Hope to see you there!
This document is for an old version of FOP that is no longer supported. Latest version of this page
Apache FOP™: MetadataOverviewDocument metadata is an important tool for categorizing and finding documents. Various formats support different kinds of metadata representation and to different levels. One of the more popular and flexible means of representing document or object metadata is XMP (eXtensible Metadata Platform, specified by Adobe). PDF 1.4 introduced the use of XMP. The XMP specification lists recommendation for embedding XMP metdata in other document and image formats. Given its flexibility it makes sense to make use this approach in the XSL-FO context. Unfortunately, unlike SVG which also refers to XMP, XSL-FO doesn't recommend a preferred way of specifying document and object metadata. Therefore, there's no portable way to represent metadata in XSL-FO documents. Each implementation does it differently. Embedding XMP in an XSL-FO documentAs noted above, there's no officially recommended way to embed metadata in XSL-FO. Apache FOP™ supports embedding XMP in XSL-FO. Currently, only support for document-level metadata is implemented. Object-level metadata will be implemented when there's interest. Document-level metadata can be specified in the Example
Implementation in Apache FOPCurrently, XMP support is only available for PDF output. Originally, you could set some metadata information through FOP's FOUserAgent by using its set*() methods (like setTitle(String) or setAuthor(String). These values are directly used to set value in the PDF Info object. Since PDF 1.4, adding metadata as an XMP document to a PDF is possible. That means that there are now two mechanisms in PDF that hold metadata. Apache FOP now synchronizes the Info and the Metadata object in PDF, i.e. when you set the title and the author through the FOUserAgent, the two values will end up in the (old) Info object and in the new Metadata object as XMP content. If instead of FOUserAgent, you embed XMP metadata in the XSL-FO document (as shown above), the XMP metadata will be used as-is in the PDF Metadata object and some values from the XMP metadata will be copied to the Info object to maintain backwards-compatibility for PDF readers that don't support XMP metadata. The mapping between the Info and the Metadata object used by Apache FOP comes from the PDF/A-1 specification. For convenience, here's the mapping table:
NamespacesMetadata is made of property sets where each property set uses a different namespace URI. The following is a listing of namespaces that Apache FOP recognizes and acts upon, mostly to synchronize the XMP metadata with the PDF Info dictionary:
Please refer to the XMP Specification for information on other metadata namespaces. Property sets (Namespaces) not listed here are simply passed through to the final document (if supported). That is useful if you want to specify a custom metadata schema. LinksPDF custom propertiesIt is possible to add custom key/value pairs in the Info dictionary of a PDF document. Those custom properties will appear in the ‘Custom’ tab of Adobe Reader’s ‘Document Properties’ window. A pdf:info element can be added as a child of fo:declarations and contain the custom properties. For example: PDF ViewerPreferencesYou can set PDF viewer preferences for example using: There is a specific element for each possible entry type: pdf:array, pdf:boolean, pdf:name, pdf:number, pdf:string. For example: PDF Page PieceAllows indexing of PDF files for tools such as IBM Content Manager OnDemand Usage (fo)Add metadata for each page master based on how the software has been configured. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402605 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |