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

DeletePages Method

Deletes one or more pages from a PDF file.

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

void DeletePages(String InputFileName,
                 String OutputFileName,
                 int From,
                 int To)

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