Save Method
Saves the PDF with one or more attachments.
Syntax
async pdfxml.save(): Promise<void>
Remarks
This method should be called after setting the desired properties and configuration settings to create a new PDF document.
Note: You must add an attachment using the AddAttachment method or by creating a new pdfattachment and adding it to the Attachments collection before calling this 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 class 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:- OutputFile
- OutputData: The output data is written to this property if no other destination is specified.