You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Johannes Becker <Jo...@gmx.net> on 2006/08/28 11:50:50 UTC

[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
-- 


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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re:Fw: Rounded Rectangle effect in FOP

Posted by Florin Marcus <fl...@gebs.ro>.
It seems that FOP is not handling very well this kind of layout.
Should't be this reported as bug?




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


Re: [0.92beta] foUserAgent.setXXX - Do (all) setters work?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 29.08.2006 09:59:23 Pascal Sancho wrote:
> Hi all,
> 
> > -----Original Message-----
> > From: Jeremias Maerki [mailto:dev@jeremias-maerki.ch] 
> > Sent: Monday, August 28, 2006 10:43 PM
> > 
> > On 28.08.2006 14:31:49 Pascal Sancho wrote:
> > > > -----Original Message-----
> > > > From: Johannes Becker [mailto:Johannes.Becker@gmx.net]
> > > > 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...

Huh? The site doesn't say a single word about XMP metadata support. :-)
I guess I need to change that. Hmm, or would you like to do that?
Writing documentation for FOP is something you don't need Java knowledge
for. Anyway, I can probably write that up on Thursday unless someone
beats me to it.

<snip/>


Jeremias Maerki


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


Re: [0.92beta] foUserAgent.setXXX - Do (all) setters work?

Posted by Johannes Becker <Jo...@gmx.net>.
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 <de...@jeremias-maerki.ch>
An: fop-users@xmlgraphics.apache.org
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:Johannes.Becker@gmx.net] 
> > > Sent: Monday, August 28, 2006 11:51 AM
> > > To: fop-users@xmlgraphics.apache.org
> > > 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: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

-- 


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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: [0.92beta] foUserAgent.setXXX - Do (all) setters work?

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 28.08.2006 14:31:49 Pascal Sancho wrote:
> > -----Original Message-----
> > From: Johannes Becker [mailto:Johannes.Becker@gmx.net] 
> > Sent: Monday, August 28, 2006 11:51 AM
> > To: fop-users@xmlgraphics.apache.org
> > 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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org