Ashok Sahu wrote: > Hi, > > I have PDFs which are password secured. Whenever I am removing the > security from "Password Security" to "No Security", it is asking > password. But there are few PDFs for which password is not asking and I > am able to remove the security. I am doing it using Adobe Acrobat > professional. > > The same, I want to use with Java iText api. I am able to find such > PDFs for which I am able to remove the security without giving password > using the method: > > PdfReader.computeUserPassword. > > For these PDFs, it is returning values in Byte but for other secured > PDF, it is returning NULL value. > > Can any one please let me know how to reset the security for these > PDFs from "Password Security" to "No Security"?
For PDFs protected with an owner password, you need to provide this password. If you try to remove security without providing that password, please go to the nearest police station and report about the person who gave you the assignment (because he's asking you to do something that is illegal). -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net 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/