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

ExtractPages Method

Extracts one or more pages from a PDF file.

Sub ExtractPages(InputFileName As String,
                 OutputFileName As String,
                 From As Long,
                 To As Long)

void ExtractPages(string InputFileName,
                  string OutputFileName,
                  int From,
                  int To)

void ExtractPages(String InputFileName,
                  String OutputFileName,
                  int From,
                  int To) throws PDFProcessorException

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")
' extract first 5 pages from input PDF file
oProcessor.ExtractPages "C:\test\input.pdf", C:\test\output.pdf", 0, 4