Hi all,

> -----Original Message-----
> From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
> Sent: Monday, August 28, 2006 10:43 PM
> 
> On 28.08.2006 14:31:49 Pascal Sancho wrote:
> > > -----Original Message-----
> > > From: Johannes Becker [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, August 28, 2006 11:51 AM
> > > 
> > > I'm trying to set the Author, Title and CreationDate with the 
> > > FoUserAgent of my PDF (foUserAgent.setXXX).
> > > 
> > > The generated PDFs entries are blank in the "Description" of the 
> > > document. Is this a problem of FOP or my PDF-viewer 
> (Adobe-Acrobat 
> > > Reader 7.0.5 on Windows)?
> > > 
> > > Cheers
> > > Jonny
> > 
> > Hi Jonny,
> > 
> > AFAIK, FOP doesn't support directly PDF propertires (see [1]).
> > You should use a post-processing tool like i-text (see [2]).
> 
> That was FOP 0.20.5. The latest release supports this. It 
> could be that 0.92beta has a little problem in that area, but 
> at least in FOP Trunk (from SVN) handles that just fine. With 
> FOP Trunk you even have the possibility to set the document 
> metadata as XMP metadata in the fo:declarations part of your 
> XSL-FO document.

FOP site should be more precise on this topic...

> Jonny, please open the PDF file in a text editor and check if 
> you see the values you set in there right at the beginning of 
> the file. Could you show us the code part where you configure 
> the FOUserAgent?

I tried this following snippet (according to XML spec at [1]) and:
With FOP 0.92b, PDF contains no declared properties, even reading with
text editor;
With FOP Trunk (29/08/2006), PDF contains both declared properties.

[1]
http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.p
df

<fo:declarations>
        <x:xmpmeta xmlns:x="adobe:ns:meta/"
                xmlns:dc="http://purl.org/dc/elements/1.1/";
                xmlns:xmp="http://ns.adobe.com/xap/1.0/";>
                <dc:creator>My Name</dc:creator>
                <xmp:CreatorTool>My App</xmp:CreatorTool>
        </x:xmpmeta>
</fo:declarations>

HTH
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to