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

AddPageNumberForSingleFileOutput Property

Add page number to file name even for single file output.

Type

Boolean

Remarks

This feature is turned off by default.

Example Usage

Set oConverter = CreateObject("easyPDF.PDFConverter.8")
Set oPDF2Image = oConverter.PDF2Image
 
oPDF2Image.ImageResolution = 72
oPDF2Image.ImageColor = CNV_IMAGE_CLR_24BIT
oPDF2Image.ImageFormat = CNV_IMAGE_FMT_JPEG
oPDF2Image.ImageQuality = 85
 
' Make the file name to always have following format: filename_###.ext
oPDF2Image.AddPageNumberForSingleFileOutput = True
oPDF2Image.MinimumPageNumberDigits = 3
oPDF2Image.PageNumberSeparator = "_"
 
' set timeout values
oPDF2Image.PageConversionTimeout = 60000 ' 1 min
oPDF2Image.FileConversionTimeout = 3*60000 ' 3 min
 
oPDF2Image.Convert "C:\test\input.pdf", "C:\test\output.jpg"