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

PageFrom Property

Sets page range (from).

Type:

Long (read-only)

Remarks

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

This property is ignored if:
1. Converting a Word document with ConvertHyperlinks or ConvertBookmarks property set to True.
2. Converting an image other than multi-page TIFF.

Note: If you want to reset the setting (and convert all pages), set a negative number to this property.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob

' Convert from page 2 to page 5
oPrintJob.PageFrom = 1
oPrintJob.PageTo = 4

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"