i want to copy the data from one pdf file to another pdf file when i am using itextshap 5.3.2 dll this is working but old versions of the itextsharp dll
i am getting the error Owner password required how can solve this problem
this ththis is my code
string pdfTemplate = Server.MapPath("Templates") + "\\i-9.pdf";
string newFile = Server.MapPath("Templates") + "\\newI9.pdf";
PdfReader pdfReader = new PdfReader(pdfTemplate);
PdfStamper pdfStamper = new PdfStamper(pdfReader, new FileStream(
newFile, FileMode.Create));
d


Nitesh KejriwalRank #253 · 9.9K reputationPosted Oct 13, 2012, 11:28 PM EDT
Rakesh KalluriRank #535 · 4.5K reputationPosted Oct 14, 2012, 10:03 PM EDT
The orginal pdf file doesn't allow to copy ,edit these types of permision but when i am using
Itextsharp 5.3.2 version this is working fine beacause in 5.3.2 version has one property is
PdfReader.unethicalreading = true;
BUT the old version of itextsharp dll it is not working because of there is no
PdfReader.unethicalreading = true;
how can solve this problem in old versions
Nitesh KejriwalRank #253 · 9.9K reputationPosted Oct 14, 2012, 10:21 PM EDT
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfReader.html#unethicalreading
Rakesh KalluriRank #535 · 4.5K reputationPosted Oct 14, 2012, 10:25 PM EDT
Nitesh KejriwalRank #253 · 9.9K reputationPosted Oct 14, 2012, 10:47 PM EDT