I have a pdf file around 2GB which contains High Def Pictures and scanned Images. What I am doing is splitting the pdf into several smal pdfs based on what how many pages users enters in the textbox.
I'm trying to split the documents and save the new pdf and in between it gives error.
oGdPicturePDFDest = destination PDF File
oGdPicturePDFSrc = source PDF
Code: Select all
Int32 pageIndex = splitValues.ElementAt(j).PageIndex;
if (TotalPage > 1)
{
if (oGdPicturePDFDest.ClonePage(oGdPicturePDFSrc, pageIndex) != GdPictureStatus.OK)
{
statusSplit = false;
System.Windows.Forms.MessageBox.Show("Cannot clone image: " + oGdPicturePDFDest.GetStat().ToString());
return;
}
}
It work fine when the file size is around 500- 700mb