Skip to main content

Split PDF in COM/ActiveX

Split PDF in COM/ActiveX

How to Split PDF Pages​

Splitting a PDF with DynamicPDF Merger is a straightforward task. The following steps and sample code illustrate.

Steps to Split a PDF​

  1. Create a pdfToSplit object and Load first PDF file.
  2. Loop through the pages and save each individual page separately.
  3. Output the Document to the Browser.

Sample Code - ASP​

Dim pdfToSplit
Set pdfToSplit = Server.CreateObject("DynamicPdf.PdfDocument")
pdfToSplit.LoadPdf Server.MapPath("DocumentA.pdf")

Dim i
For i = 1 To pdfToSplit.PageCount
Dim MyDocument
Set MyDocument = Server.CreateObject("DynamicPDF.Document")
MyDocument.LoadPdf pdfToSplit,i,1
MyDocument.DrawToFile("Pdf_" & i & ".pdf")
Next

Getting Started​

DynamicPDF Merger Information​

More information can be found here:

Available in Other Platforms​

DynamicPDF Merger PDF Library is available for .NET and Java platforms. Refer to the respective product pages for more details.