Hi,
I want to be able to set the PDF Producer, Title, Author,
Subject and Keywords properties of a PDF file.
Can you tell me how to do this?
Thanks
Steve
-
Steve Simpson
Arriva Vehicle Rental
Tel : 0191 520 4029
Steve Simpson (AVR IT Dept) wrote:
Hi,
I want to be able to set the PDF Producer, Title, Author, Subject and
Keywords properties of a PDF file.
Can you tell me how to do this?
Thanks
Steve
New document:
Document document = new Document();
Windows Explorer is probably reading the xml metadata.
iText only changes the Info dictionary. You'll have to
change the xml yourself.
--- [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Dear support:
I use the following code to change the Title
property:
PdfReader pdfReader = new
]
[EMAIL PROTECTED] wrote:
Can you tell me where the xml is and how I can get
to it?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 4:34 AM
To: Conway, Cameron;
[EMAIL PROTECTED]
Subject: Re: [iText-questions] PDF Properties
Dear support:
I use the following code to change the Title property:
PdfReader pdfReader = new PdfReader(C:\\comments\\11438.pdf);
HashMap meta = pdfReader.getInfo();
PdfStamper stp = new PdfStamper(pdfReader, new
FileOutputStream(C:\\comments\\out.pdf));
String title =