Initializes a new PDFFile object and associated it with the name of a PDF file and the password used to decrypt it.
The name of the file associated with this PDFFile.
The password associated with the PDF file at fileName.
This constructor will initialize the properties of the PDFFile object as follows:
DocumentProperties will be set to null
Pages collection will be set to null
In certain situation, you may want to associate a PDFFile with a Postscript and not a PDF file. For example, to create a PDFFile object and call its Distill method to convert the Postscript file to PDF.
PDF files password must be 64 ASCII characters or less. This is defined by the PDFDocument.MaximumPasswordLength constant. LEADTOOLS will automatically convert the password string to ASCII and truncate if required.
This example will determine whether a PDF file is encrypted, ask the user for a password then open it.
Medical Web Viewer .NET