Leonard
Thanks for your response. 
 
>You need to switch your workflow so that all modifications
>are done BEFORE the application of Reader Extensions.
 
Can I set the Reader Extensions programatically after all the modifications?.
 
I am reading the files that has Reader Extensions applied to it from my app server and fill it with values and generate the modified PDF ByteArrayOutputStream.
 
Code Snippet:
 
try {
   
         // Read the input PDF file
         PdfReader reader = new PdfReader((String)object);
   
         // Instantiate a PdfStamper with a outputfile name specified
         PdfStamper stamper = new PdfStamper(reader, pdfStream);
        
         // Get all the AcroFields from the file
         AcroFields af = stamper.getAcroFields();
        
         // Iterate through the List of Value objects and set them in AcroField
         processFields(af, values);
        
   stamper.close();
   
   // Finally return the OutputStream to the client
   return pdfStream;
  } catch (Exception de) {
            de.printStackTrace();
            // Return null in case of errors
            return null;
  }
 
How would I change the workflow to apply the Reader Extension after the modification?
 
Also can you elaborate on your comment below
>You may also need to invest in Adobe's LiveCycle Reader
> Extensions Server, if your requirements dictacte.
 
Would this resolve my problem?
 
Thanks
Sendhil


Leonard Rosenthol <[EMAIL PROTECTED]> wrote:
At 7:12 PM -0800 11/13/06, Sendhil Dhakshinamoorthy wrote:
>I am trying to read existing PDF file and fill it with values and
>display the modified PDF to user. All the PDF files have Acrobat
>Reader Extensions applied to them and are modifyable and savable
>locally.
>When the modified PDF opens in Acrobat Reader, the following
>informational (warning) message is displayed
>

Correct. Because you did indeed modify it.



>Can you tell how to fix this problem, so that
> 1. the code would not allow this informational message from displaying and
> 2. allow the user to save the PDF file with more modifications.
>

You need to switch your workflow so that all modifications
are done BEFORE the application of Reader Extensions.

You may also need to invest in Adobe's LiveCycle Reader
Extensions Server, if your requirements dictacte.


Leonard
--
---------------------------------------------------------------------------
Leonard Rosenthol
Chief Technical Officer
PDF Sages, Inc. 215-938-7080 (voice)
215-689-3863 (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
Buy the iText book: http://itext.ugent.be/itext-in-action/


Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to