Split multipage .pdf file


#1

I’m looking into buying this software–aspose.pdf.kit–however I only need to split multipaged .pdf files by page into seperate .pdf files. I’ve contacted the sales department–they were of no help–to see if the program does this feature or not. I also want to try the product out first. Also, I want to ensure that I would only have to buy the aspose.pdf.kit, and nothing else–the sales rep wasn’t exactly sure. Thanks!


#2

Hi,

Thanks for contacting us.

The function is implemented by Extract(string inputFile,int[] pageNumber,string outputFile) in Aspose.Pdf.Kit. The parameter of ‘pageNumber’ indicates which pages you want to choose from ‘inputFile’.

You can try it out with the code,below

[c#]
int[] pages = new ing[]{1,2,4,10};
PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.Extract(“inFile.pdf”,pages,“outFile.pdf”);

[Visual Basic]
Dim pages() As Integer = New Integer() {1, 2, 4, 10}
Dim pdfEditor As PdfFileEditor = New PdfFileEditor
pdfEditor.Extract(“inFile.pdf”, pages, “outFile.pdf”)


Best regards.