is there any method or function availabe to copy and save pdf file from one GDPicturePDF object to another GDPicturePDF object without using ClonePage() method?
my main goal is one pdf file is password protect and i want to remove password and save pdf file with same name and path(overwrite).because sometimes one pdf file containse 5000 or more pages then we will have to loop through each page and save to another pdf using clonePage() method. it will decrease performance as well taking some more time for loop pages.
like below code.
Code: Select all
GdPicturePDF objPDF = new GdPicturePDF();
objPDF.SetLicenseNumber("XXX");
objPDF.NewPDF();
GdPicturePDF objPDFNew = new GdPicturePDF();
objPDFNew.SetLicenseNumber("XXX");
if (objPDFNew.LoadFromFile("C:\\5000Pages.pdf", true) == GdPictureStatus.OK)
{
objPDF=objPDFNew;
}