On 08/05/06, Leonard Rosenthol <[EMAIL PROTECTED]> wrote:
No, it's not. I've got a standard Cover-Page and a standard Watermark. Most documents are produced with Microsoft Word and lately converted to PDF. Some of them are created using Adobe Writer. My problem was to programatically ensure that all PDF documents, original or converted, had the cover-page and watermark appended.
I picked the first option. I added custom keys into the info dictionary. My main doubt was whether I could create such custom keys either in the info dictionary or in the /Catalog or anywhere else. So I ask you, if I add such keys to the info dictionary, to the /Catalog or somewhere else, can my document be messed up so the final reader won't be able to open it?
Thank you all,
Filipe Fedalto
At 02:23 PM 5/8/2006, Filipe Fedalto wrote:
>I am developing a program to ensure that all my PDF documents have
>the same basic format. This format is very simple and it is consited
>of a Generic Cover-Page and a Generic Watermark. The Cover-Page and
>Watermark are both PDF files themselves. The Cover-Page is a
>one-page PDF document with some general instructions. It is appended
>to the very beginning of the document. The Watermark is a one-page
>PDF file with an image embedded. It is appended to the top-left
>corner of each page of the document. This Watermark PDF file has a
>small page size equal to the image itself.
So iText is used to create each document, correct? So then
there is an amount of control over the PDF creation process - yes?
No, it's not. I've got a standard Cover-Page and a standard Watermark. Most documents are produced with Microsoft Word and lately converted to PDF. Some of them are created using Adobe Writer. My problem was to programatically ensure that all PDF documents, original or converted, had the cover-page and watermark appended.
I would use something simple like custom keys in the Info
dict or in the /Catalog or on the page(s) that you are adding the
watermark. Each to add and easy to check for.
I picked the first option. I added custom keys into the info dictionary. My main doubt was whether I could create such custom keys either in the info dictionary or in the /Catalog or anywhere else. So I ask you, if I add such keys to the info dictionary, to the /Catalog or somewhere else, can my document be messed up so the final reader won't be able to open it?
Thank you all,
Filipe Fedalto