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?
However, I with to add some intelligence to my program so that it is able to recognize whether some input document already has a Cover-Page or already has the Watermark. If it already has the Cover-Page, my program is only to insert the watermark. On the other hand, if all pages already have the watermark, my program is only to insert the cover-page. Finally, if the document has neither the cover-page nor any watermark, my program is to insert both contents.
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.
Leonard --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
