Hi,

it works now. Thanks all for your help. 
I don't know what I changed in code (since I deleted the non working, stupid 
me), but here is how it works for me in 0.92beta:
....
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
// configure foUserAgent as desired
foUserAgent.setAuthor(authorString);
foUserAgent.setTitle(titleString);

Fop fop = fopFactory.newFop(MimeConstants.MIME_PDF, foUserAgent, outputStream);
...

> 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.
These are the values I see (that are working!!!!!!):

%PDF-1.4
%ª«¬­
4 0 obj
<<
/Title (Test)
/Author (Jonny)
/Producer (Apache FOP Version 0.92beta)
/CreationDate (D:20060829135902+02'00')
>>
...


Cheers
Jonny


-------- Original-Nachricht --------
Datum: Mon, 28 Aug 2006 22:42:59 +0200
Von: Jeremias Maerki <[EMAIL PROTECTED]>
An: [email protected]
Betreff: Re: [0.92beta] foUserAgent.setXXX - Do (all) setters work?

> 
> 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
> > > To: [email protected]
> > > Subject: [0.92beta] foUserAgent.setXXX - Do (all) setters work?
> > > 
> > > Hi,
> > > 
> > > 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.
> 
> 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?
> 
> > HTH, Pascal
> > 
> > [1] http://xmlgraphics.apache.org/fop/faq.html#pdf-doc-properties
> > [2] http://xmlgraphics.apache.org/fop/0.20.5/output.html#pdf-postprocess
> 
> 
> Jeremias Maerki
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

Reply via email to