Leadtools.Pdf Namespace > PDFFile Class : Load Method |
public void Load()
'Declaration Public Sub Load()
'Usage Dim instance As PDFFile instance.Load()
public: void Load();
This method will load the PDF file set in FileName (using the password set in Password if the PDF file is secured) and populate the following properties:
The Pages property will contain a list of PDFFilePage for each page in the PDF file.
The DocumentProperties property will contain the properties of the PDF file.
This method will fail with an exception if the file in FileName is not a valid PDF file. In certain case, you can set the name of a Postscript file in FileName, for example, before calling the Distill method. But you should not call Load in this case.
For an example, refer to PDFFile.