Sample for spliting

PLEASE GIVE ME .NET EXAMPLE TO EXTRACT MULTIPLE PAGES FROM 1 SINGLE PDF


This message was posted using Page2Forum from
SplitToPages Method - Aspose.Pdf.Kit for .NET and Java

Hi Ajit,

Thank you very much for considering Aspose.

Please try PdfFileEditor.SpitToPages method. It includes a detailed sample, nevertheless I’m posting it here as well.


string inFile1 = “example1.pdf”;

PdfFileEditor pdfEditor = new PdfFileEditor();

int fileNum = 1;

MemoryStream[] outBuffer = pdfEditor.SplitToPages(inFile1);

foreach(MemoryStream aStream in outBuffer)

{

FileStream outStream = new FileStream(“oneByone” + fileNum.ToString() + “.pdf”,FileMode.Create);

aStream.WriteTo(outStream);

outStream.Close();

fileNum++;

}




I hope this helps. If you find any further questions, please do let us know.
Regards,