I am having perhaps more of a problem of ability... I am given a pdf that I
Don't know the password to, I need to append / merge the pdfs together then assign it a
new password... Is this done with a similar task?
>Hi Jean,
We do have option for merging password protected document and set the password again.
I can be done as follows:
//Open a PDF document
PDFDocument pdfdoc1= PDFDocument.Load(source1);
//Open the password protected PDF document
PDFDocument pdfdoc2 = PDFDocument.Load(source2,"111");
//Add the pages of password protected document to the 1st document
for (int pages=0;pages< pdfdoc2.Pages.Count;pages++)
{
pdfdoc1.Pages.Add(pdfdoc2.Pages[pages]);
}
//Save the document
pdfdoc2.Save(destination);
Here is a sample for your reference.
merge.zip
Please take a look into it and let me know if you have any queries.
Regards,
Dhivya.