I am using iText library to fill in pdf forms. Some time my I get forms that
are treated encrypted by iText and throws exception "PdfReader not opened with
owner password".
I reviewed the code and found that PdfReader turns on encrypted flag at this
place.
PdfObject encDic = trailer.get(PdfName.ENCRYPT);
And PdfStamperImp the checks it via reader.isOpenedWithFullPermissions() and
throws exception.
I modify isOpenedWithFullPermissions() as follow every thing works fine.
// return !encrypted || ownerPasswordUsed;
return !ownerPasswordUsed;
Every thing now works file and I can fill in forms from my application but I am
not sure it is feature or a bug.
Can any one from iText team confirm it.
--
This message was sent on behalf of [email protected] at openSubscriber.com
http://www.opensubscriber.com/messages/[email protected]/topic.html
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/