views:

219

answers:

2

Hi,

I'm generating some PDF files using Apache FOP v0.94.

Can you please tell me how to set the PDF Document Properties like Title, Author, Keywords etc programmatically?

Googled a bit but didn't get any useful information.

Thanks in advance...

A: 

See here and here.

It says you should use iText for post processing.

michael.kebe
+1  A: 

See also: - http://xmlgraphics.apache.org/fop/0.95/embedding.html#user-agent - http://xmlgraphics.apache.org/fop/0.95/metadata.html

Jeremias Märki
Set the user agent properties as mentioned in http://xmlgraphics.apache.org/fop/0.95/embedding.html#user-agent and it works!
whoopy_whale