Data Type: String
Default Value: Empty
Description: Set these properties to the passwords that may be required. PasswordOwner is specified by the creator of the PDF file. PasswordUser is specified by a user of the PDF file.
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