With reference to this
http://stackoverflow.com/questions/17524857/merging-pdf-in-asp-net-c-sharp/17525948?noredirect=1#comment25485091_17525948
question of mine, I have user IText for merging the pdf documents. I am getting " PdfReader not opened with owner password "
for some files. Any suggestions
Add this code after PdfReader definition
PdfReader.unethicalreading = true;
For iText 7 it is
PdfReader pdfReader = new PdfReader(PATH + name + ".pdf");
pdfReader.setUnethicalReading(true);
See also: itext7-how-decrypt-pdf-document-owner-password
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With