Save Method

Saves the PDF with one or more attachments.

Syntax

public void save();

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:

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks EDI 2020 Java Edition - Version 20.0 [Build 7941]