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 KejriwalPosted Oct 15, 2012, 2:47 AM
Rakesh KalluriPosted Oct 15, 2012, 2:25 AM
Nitesh KejriwalPosted Oct 15, 2012, 2:21 AM
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfReader.html#unethicalreading
Rakesh KalluriPosted Oct 15, 2012, 2:03 AM
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 KejriwalPosted Oct 14, 2012, 3:28 AM