On 10/31/2014 8:28 AM, santhosh....@hotmail.com wrote:
> I have an existing editable PDF which is not generated with i-text.
>
> And I am reading the values from pdf and i have to make the editable columns
> readonly.
> here is my following snippet of code

The exception is caused by this error:

new PdfReader(reader.getPageContent(0))

You are using a constructor of PdfReader that expects a byte array containing a 
full PDF file (starting with "%PDF-" and ending with "%%EOF").

Instead of such a PDF file, you are feeding it with a content stream of 
page 0.
This doesn't nake sense.

This is not your only error. It's as if you never read any of the examples.
Please throw away your code and start anew AFTER reading the documentation.

Also note that you are NOT subscribed to the mailing-list.
See http://itextpdf.com/nabble for more info.
Your mail was approved manually, but next time it could be overlooked in 
which case nobody on the mailing list will see your question.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to