Hi,
Try
PdfReader.unethicalreading = true;


________________________________
 From: Edward Cooke <eco...@macu.com>
To: "itext-questions@lists.sourceforge.net" 
<itext-questions@lists.sourceforge.net> 
Sent: Monday, January 9, 2012 6:01 AM
Subject: [iText-questions] form filling with password protected pdf documents
 

  
Hi, I’m trying to fill a secured pdf, flatten it, then save it. When I try to 
open the stamper on the pdfreader, it throws a bad password exception saying 
“PdfReader not opened with owner password”
I don’t have the password as this pdf comes from a 3rd party.
I was able to get around it by commenting out the check for if it was 
openedwithfullpermissions and the throwing of the exception in PdfStamperImp’s 
internal constructor, and it works fine, all though I’m sure on some secured 
docs it will probably break, and modifying the source on a 3rd party library 
kind of sucks, especially when there’s a new version.
 
Is there a correct way of doing this? Or will I need to use this workaround?

  Edward Cooke 
Programmer II, Information Systems
+1 801-325-6143tel
+1 801-898-5940cell
eco...@macu.com
http://www.macu.com        


________________________________
 

***Confidentiality and Security Notice: This message and any attachments are 
intended only for the use of the individual or entity to which it is addressed 
and may contain confidential and/or privileged information. If you are not the 
intended recipient you are hereby notified that any dissemination, copying, or 
distribution of this message, or attachments, is strictly prohibited. If you 
have received this message in error, please notify the sender immediately by 
e-mail and delete it from your computer. Do not send sensitive data via 
unencrypted email as it may be intercepted in transit***
 
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
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
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
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