Read this http://itextdocs.lowagie.com/tutorial/general/copystamp/index.html#intro.

----- Original Message ----- From: "Robin" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 29, 2005 7:12 PM
Subject: [iText-questions] Help!! Modified original pdf with PdfContentByte


PLease Help!

Basically here's how my program works.
I read my original pdf page by page and write them to my new pdf using a
ContentByte.

The problem is that I want to be able to make modifications on my original
document with Acrobat.
So I opened one of my original pdf with Acrobat Professional 7 (also tried 6) and I used the drawing tool to draw a white rectangle over my title. I saved
the document and tried to launch back my itext program.
Unfortunately in my newly created pdf file, the title of my pdf file is still
there.
Is there a way to tell my pdfReader to keep all my annotations?

How can I read those modifications?
Does someone know where I could find any example of reading those
modifications?

Here's an example of my code:

PdfImportedPage ip;
PdfReader reader;
PdfContentByte cb;

reader = new PdfReader(file);

cb = writer.getDirectContent();

nbPages = reader.getNumberOfPages();

//for each page of the document
for(int i = 1; i <= nbPages; i++){
ip = writer.getImportedPage(reader, i);
cb.addTemplate(ip, fact, 0, 0, fact, x, y);
}

Thanks a lot for your help,

Robin.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to