Leonard,
 
Thank you very much for your prompt answer.
 
1- You are correct: I am very much ignorant about PDF format and just started to read at the PDF Reference, v1.5.
 
2- I am using PdfImportedPage as shown in the code extract: copy.getImportedPage () ... copy.addPage (...). Isn't this what you are advising me to do ?
 
3- You are refering to PdfStamper to add extra infos (ie: annotation's normal appearance, ...)
 
Q1: Do you mean I should split the behavior into several steps as follows ?
1- use PdfCopy to only copy pages of interest witout annotations into a temp pdf file #1
2- use PdfStamper to add annotation normal appearance into  into a temp pdf file #2
3- use PdfWriter to create the final pdf including recap of comment for each annotated page into final pdf file
 
Regards,
 
PS: Leonard, I am sorry to look/sound so dumb at PDF (but in fact I really am), and I really appreciate your care.
 


From: Leonard Rosenthol [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 10:07 PM
To: Nguyen, Daniel; [EMAIL PROTECTED]
Cc: Paulo Soares
Subject: RE: [iText-questions] Comment summary generation

At 03:27 PM 11/18/2004, Nguyen, Daniel wrote:
Q1: My understanding of what Acrobat does is :

        You are describing your assumption about an application-specific implementation.  You do NOT need to reproduce their internal implementation exactly.  You simply wish to produce a similar result.

        You need to understand the CONCEPTS of what Acrobat is doing - NOT the implementation.  To do this, you need to read the PDF Reference about the objects and issues involved.


What i've been able to do:
 
1- remove the page's annotations
2- copy the page
 

        Understood, but you'll be better served using PdfImportedPage().



Now, what's missing:
1- I don't have normal appearance of the annotations on the pages

        You can have iText do this for you by using the Flatten() features.  They were designed for form fields, but should also work just fine for any type of annotation.


2- I should update the page content to display the annotation numbers comments on next page(s) refer to.
 

        Use the PdfStamper class to do this.


Leonard

---------------------------------------------------------------------------
Leonard Rosenthol                            <mailto:[EMAIL PROTECTED]>
Chief Technical Officer                      <http://www.pdfsages.com>
PDF Sages, Inc.                              215-938-7080 (voice)
                                             215-938-0880 (fax)

Reply via email to