Samples: Split PDF Documents

   Minimize
  Split PDF Documents Sample for C# / VB.NET


Download the sample here
 

[C#]

PdfDocumentEditor pdfEditor = new PdfDocumentEditor("file1.pdf");

pdfEditor.Insert(0, "file4.pdf", 0, 2);

string outFile = "file1_{0}.pdf";

pdfEditor.SplitToPages(outFile);

 

[VB.NET]

Dim pdfEditor As New PdfDocumentEditor("file1.pdf")

pdfEditor.Insert(0, "file4.pdf", 0, 2)

Dim outFile As String = "file1_{0}.pdf"

pdfEditor.SplitToPages(outFile)