Rakesh Kalluri

Rakesh Kalluri

  • 366
  • 4.5k
  • 3m

GEtting error in itextsharp

Oct 14 2012 1:46 AM
hai 



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

Answers (5)