Javeed, Zeeshan wrote: > Hi, > > I am quite new to iText. I have a problem regarding Filling the forms > programmtically. > The PDF file is password protected but on Acrobat Reader, I can fill in > the values and save the document.
Wow, if you can save it locally, your PDF is Reader Enabled. You'll never be able to "Reader Enable" a PDF using iText. > When I try to open the document in Stamper or try to get Form, i get > error of , Owner Password. > > The Permssion of the file is : > Permissions: Allowed: Printing Modify annotations Fill in Screen readers > Degraded printing > > and the error message is : > java.lang.IllegalArgumentException: PdfReader not opened with owner > password > > If I open the file with PDFReader and take readonly field values, I get > the fields value. > My question is, > > How I can get modify the values ? You can't. There are plans to make it possible to fill in fields and sign a PDF if the bit that allows filling in forms is on (in other words: if it's legal to do so), but we need to change the design of PdfReader to do this. (And that would be a "paid assignment", not something we do for free.) > How can I get the values already entered in the fields. Using PdfReader.getAcroFields(); > Although, I have search the mailing list but I was not able to find the > specific problem. In case of duplcation, please reply with appropriate > link. http://1t3xt.info/tutorials/faq.php?branch=faq.itext&node=password -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ 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
