MakePDFDocument.dss
This script is always called when a PDF document is produced by KCM ComposerUI. By default this script uses the DocToPDF command to generate the PDF document. Users can change the script to use another PDF converter or add additional functionality to the document production.
Parameters
The script is called with the following parameters:
-
Document: The file path of the input document.
-
PDFResult: The file path of the resulting PDF document. The script must either produce this file or throw an error.
-
IsFinalResult: Indicates if this is the final result document (True) or a preview document (False).
-
Environment: The environment to produce the document.
-
Master Template: The Master Template to produce the document.
-
UserID: The user name of the browsing user.
-
ApplicationID: The name of the KCM ComposerUI application.
-
ProcessParams: The content of the pvw_proc_params (if IsFinalResult=False) or the res_proc_params (if IsFinalResult=True) that is passed to the runmodel call if any.