Data Type: Long
Default Value: 0
Description:
FirstPage: First page to begin converting. If the value is less than 1 then it is defaulted to the first page of the PDF.
LastPage: Last page to convert. If the value is less than 1 then it is defaulted to the last page of the PDF.
Set both FirstPage and LastPage to 0 to do the whole document.
Example:
Public Function ConvertPDFToFile(sInputFile As String, _
sOutputFile As String, _
bIgnoreProtect As Boolean, _
sPasswordUser As String, _
sPasswordOwner As String, _
lFirstPage As Long, _
lLastPage As Long, _
lTargetFileType As Long, _
sErr As String) As Long
Dim lResult As Long
Dim bSingleShot As Boolean
Dim sPassword As String
bSingleShot = False
sPassword = ""
PDFX1.InputFile = sInputFile
PDFX1.OutputFile = sOutputFile
PDFX1.PasswordOwner = sPasswordUser
PDFX1.PasswordUser = sPasswordOwner
PDFX1.TargetFileType = lTargetFileType
PDFX1.FirstPage = lFirstPage
PDFX1.LastPage = lLastPage
ConvertPDFToFile = PDFX1.ConvertPDFToFile()
sErr = PDFX1.ErrorString
End Function