Load Method
Loads the PDF.
Syntax
public void Load();
Public Sub Load()
Remarks
This method loads a PDF document from InputFile or the stream specified by SetInputStream. The Attachment event will fire for each attachment found.
After loading a PDF document XML attachments can be parsed by calling the ParseAttachment method.
Example:
pdfxml.InputFile = "C:\input.pdf"; pdfxml.Load(); pdfxml.AddAttachment("C:\attachmentfile.txt"); pdfxml.OutputFile = "C:\output.pdf"; pdfxml.Save();
Input and Output Properties
The component will determine the source and destination of the input and output based on which properties are set.
The order in which the input properties are checked is as follows:
When a valid source is found the search stops. The order in which the output properties are checked is as follows:- SetOutputStream
- OutputFile
- OutputData: The output data is written to this property if no other destination is specified.