You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by Apache Wiki <wi...@apache.org> on 2006/08/31 09:16:50 UTC

[Xmlgraphics-fop Wiki] Update of "HowTo/XMP" by PascalSancho

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlgraphics-fop Wiki" for change notification.

The following page has been changed by PascalSancho:
http://wiki.apache.org/xmlgraphics-fop/HowTo/XMP

New page:
##language:en

XMP (''Extensible Metadata Platform'') provides a standard to work with metadata.

This page describes how to declare such metadata in fo file.

/!\ This works only with FOP trunk.
----
== Properties sets ==
Metadata is made of properties sets.

Properties sets are:
||<:>'''Set'''||<:>'''Namespace'''||<:>'''URI'''||<:>'''FOP support'''||
||Dublin core||dc||http://purl.org/dc/elements/1.1/||Partial||
||XMP basic||xmp||http://ns.adobe.com/xap/1.0/||Partial||
||XMP Rights Management||xmpRights||http://ns.adobe.com/xap/1.0/rights/||None||
||XMP Media Management||xmpMM||http://ns.adobe.com/xap/1.0/mm/||none||

=== Dublin Core set ===
||<:>'''Property'''||<:>'''Comment'''||<:>'''FOP support'''||
||dc:creator||refers to author||<#80FF80>Yes||
||dc:contributor|| ||<#FF8080>No||
||dc:coverage|| ||<#FF8080>No||
||dc:date|| ||<#FF8080>No||
||dc:description|| ||<#FF8080>No||
||dc:format|| ||<#FF8080>No||
||dc:identifier|| ||<#FF8080>No||
||dc:language|| ||<#FF8080>No||
||dc:publisher|| ||<#FF8080>No||
||dc:relation|| ||<#FF8080>No||
||dc:rights|| ||<#FF8080>No||
||dc:source|| ||<#FF8080>No||
||dc:subject|| ||<#80FF80>Yes||
||dc:title|| ||<#80FF80>Yes||
||dc:type|| ||<#FF8080>No||

=== XMP basic set ===
||<:>'''Property'''||<:>'''Comment'''||<:>'''FOP support'''||
||xmp:Advisory|| ||<#FF8080>No||
||xmp:BaseURL|| ||<#FF8080>No||
||xmp:!CreateDate||Generate an error||<#FF8080>No||
||xmp:!CreatorTool|| ||<#80FF80>Yes||
||xmp:Identifier|| ||<#FF8080>No||
||xmp:Label|| ||<#FF8080>No||
||xmp:!MetadataDate|| ||<#FF8080>No||
||xmp:!ModifyDate||Generate an error||<#FF8080>No||
||xmp:Nickname|| ||<#FF8080>No||
||xmp:Rating|| ||<#FF8080>No||
||xmp:Thumbnails|| ||<#FF8080>No||

----
== Declaring properties in fo file ==
All metadata properties can be declared in the {{{fo:declarations}}}.

XMP specification recommends to use {{{x:xmpmeta}}}, {{{rdf:RDF}}}, and {{{rdf:Description}}} elements as shown in example below.

Only one of the 2 first is required to make PDF to recognize metadata properties.

=== Example ===
{{{
<fo:declarations>
	<x:xmpmeta xmlns:x="adobe:ns:meta/">
		<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
			<rdf:Description rdf:about=""
				xmlns:dc="http://purl.org/dc/elements/1.1/">
				<!-- Dublin Core properties go here -->
				<dc:title>Document title</dc:title>
				<dc:creator>Document author</dc:creator>
				<dc:subject>Document subject</dc:subject>
			</rdf:Description>
			<rdf:Description rdf:about=""
				xmlns:xmp="http://ns.adobe.com/xap/1.0/">
				<!-- XMP properties go here -->
				<xmp:CreatorTool>Tool used to make the PDF</xmp:CreatorTool>
			</rdf:Description>
		</rdf:RDF>
	</x:xmpmeta>
</fo:declarations>
}}}
<!> {{{fo:declarations}}} __must__ be declared after {{{fo:layout-master-set}}}
----
== Links ==
 * [http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.pdf XMP specification]
 * http://dublincore.org/
.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org