BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

Split Method

Split one PDF file into two.

Sub Split(InputFileName As String,
          OutputFileName1 As String,
          OutputFileName2 As String,
          PageNumber As Long)

void Split(string InputFileName,
           string OutputFileName1,
           string OutputFileName2,
           int PageNumber)

void Split(String InputFileName,
           String OutputFileName1,
           String OutputFileName2,
           int PageNumber)

Parameters

Return Values

N/A.

Remarks

The page number uses zero-based index, meaning that page number starts from 0.

Example Usage

Set oProcessor = CreateObject("easyPDF.PDFProcessor.8")
' Split at page 5 (output1.pdf will have page 1 - 4, and
' output2.pdf will have page 5 and thereafter).
oProcessor.Split "C:\test\input.pdf", C:\test\output1.pdf", "C:\test\output2.pdf", 4