The following API renders a letter using a Letter object: public PDFResponseType renderLetter(Letter letter, String initialDataXML, boolean mergeDataOnServer, boolean useTestData, boolean renderInteractive);
Parameter details: letter: Letter template to
be rendered. This must be the full letter object containing all
necessary data and assignments.
initialDataXML: XML data that will be used to initialize
the data dictionary used in the letter, if any, and finally merged
with the letter's layout after augmentation with the necessary control
data for the letter's content.
This XML data may be fetched
from an external data source.
mergeDataOnServer: This parameter should be set to
True to merge the relevant data into the letter. Should obviously
be true for system generated correspondence.
useTestData: Specify whether to use test data for
rendering. On a production system, this should be set as false.
The given initialDataML is used instead.
renderInteractive: Specify whether to render an interactive
or non-interactive (flat) PDF file.
|
|
|