xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.Pietschmann" <j3322...@yahoo.de>
Subject Re: Setting PDF document properties
Date Wed, 27 Jul 2005 21:01:05 GMT
Johannes Stuermer wrote:
> I am using FOP in a Java servlet to return the PDF directly in the
> outputstream as content type 'application/pdf'.
> My question:
> Is it possible to change the PDF document property called "File" in addition
> to the properties Title, Author, Subject and Keywords? Currently, the "File"
> property (the first item on the PDF document property dialog - in Acrobat
> Reader 7.0) shows the name of the Java servlet. I would like to give it
> another name so when somebody saves the PDF the default filename shown in
> the save dialog shows a more appropriate name.

There is no such PDF property. The browser's save dialog just uses the
last component of the URL as default file name. A way to change this is
to use a HTTP header like
  Content-Disposition: attachment; filename="yourdefaultfilename.pdf"
The mailing list archive should have enough code samples.


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

View raw message