Leadtools.Pdf Namespace > PDFFile Class > PDFFile Constructor : PDFFile Constructor() |
public PDFFile()
'Declaration Public Function New()
'Usage Dim instance As New PDFFile()
public PDFFile()
function PDFFile()
public: PDFFile();
This constructor will initialize the properties of the PDFFile object as follows:
FileName will be set to null (Nothing in Visual Basic)
Password will be set to null (Nothing in Visual Basic)
DocumentProperties will be set to null (Nothing in Visual Basic)
Pages collection will be set to null (Nothing in Visual Basic)
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 file name and optional password, you can 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 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.
For an example, refer to PDFFile.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2