Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.23
|
Leadtools.Pdf Assembly > Leadtools.Pdf Namespace > PDFFile Class > PDFFile Constructor : PDFFile Constructor() |
public PDFFile()
'Declaration
Public Function New()
'Usage
Dim instance As New PDFFile()
public:
PDFFile();
This constructor will initialize the properties of the PDFFile object as follows:
FileName will be set to null
Password will be set to null
DocumentProperties will be set to null
Pages collection will be set to null
Before using any of the methods and properties of this PDFFile, you must set the FileName and optionally, the Password property to valid values.
After you set the filename and optional password, call the Load method to populate the DocumentProperties and Pages properties of this PDFFile object with the correct values read from the file. Or use any of the other file feature functions supported by this class.
In certain situations, 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).
For an example, refer to PDFFile.