On 7/18/2013 4:48 AM, František Comorek wrote:
> Hello,
>
> I wonder if it is possible to create my own metadata with apache fop
> library in java.
> I can add standard metadata using user agent:
>
> userAgent.setKeywords("interesting keywords");
>
> But havent found how to add customised metadata with key and value (in
> acrobat reader called "custom properties").
>
> Is there a way how to do it?
>
> Thanks.
>Hi, František- You might try exploring the <fo:declarations> element. Here's a sample of what I included in my XSL: <fo:declarations> <x:xmpmeta xmlns:x="adobe:ns:meta/"> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/"> <rdf:Description rdf:about=""> <dc:title> <rdf:Alt> <rdf:li xml:lang="x-default"> <xsl:value-of select="//title" /> </rdf:li> </rdf:Alt> </dc:title> </rdf:Description> </rdf:RDF> </x:xmpmeta> </fo:declarations> It's tricky though. -Terence Bandoian --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
