> So, basically, if I open a pdf, then query 'IsOpenedWithFullPermissions' and > it returns false, then can I be sure that I wil never be able to paginate > and insert that pdf?
Correct. > So, for example, there will never be a case where a pdf > has only very limited editing restrictions and, despite not opening it with > full permissions, I would be able to insert it into another pdf? Right again. > I want to create a routine for the user to give them a chance to enter the > password for a pdf that has not been opened with full permissions and, if > the password is wrong, I want to be sure that I can safely skip trying to > paginate and insert it because I know I never can. Or should I still attempt > to paginate and insert the pdf as it might work for some pdfs with very > limited permission restrictions? iText's implementation of PDF security isn't terribly fine-grained. You might expect something like PdfWriter.ALLOW_MODIFY_CONTENTS to allow some things in PdfCopy or PdfStamper. Proper support for all the open permission flags would (will?) require extensive checks throughout the source. Rather than ship something that would allow people to ignore document permissions, the folks that implemented the encryption protection ("Paulo" at a guess) chose to err on the side of caution. --Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::Disclaimer<Cardiff> DisCard; ------------------------------------------------------------------------------ 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 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/