MakePDFDocument.dss
This script will always be called when a PDF document is produced by ITP/OnLine Server. 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 that was used to produce the document.
- Model, the model that produced the document.
- UserID, the user name of the browsing user.
- ApplicationID, the name of the ITP/OnLine application.
- ProcessParams, the content of the pvw_proc_params (if IsFinalResult=False) or the res_proc_params (if IsFinalResult=True) that was passed to the runmodel call (if any).