The Document Complete command of the InDesign plug-in will:
• | Create a print PDF and send it to the predefined print queue. |
• | Create a PDF of archive and store it in a predefined variant on the page. |
• | Set the page workstate to the predefined one for the archive purposes. |
• | Close the InDesign document. |

The config for the print queue, workstate and PDF is in the file InDesignConfig.xml and will need to be imported by running in the Command prompt window:
cmd4 config -in InDesignConfig.xml -username xxxx -password yyyy
where xxxx is the name of a GN4 user who can logon to system with sufficient permissions to perform this operation and yyyy is the password.
Note: the above connects to the default connection: should you want to specify the connection or server name, see cmd4 examples.
Notes
• | ArchivePDFVariantName – is the variant to store the PDF. It is also the Adobe PDF preset for the creation of the PDF, same rules as the create PDF function. As per the standard configuration, it should be PDF_[Smallest file size]. |
• | PrintPDFName – is the Adobe PDF preset for the creation of the print PDF. |
• | PrintQueueName – is the name of the print queue to send the print PDF. As per the standard configuration, it should be PDF file. |
• | PageCompleteWorkstate – is the workstate to set the page to. As per the standard configuration, it should be the To Archive workstate. |
• | PrintSinglePages – will create a print PDF of each page if this is set to True otherwise is will create one print PDF for the document. As per the standard configuration, it should be set to True. |
The name of the print pdf is the description of the page and the page name. The first page name is used if there are multiple pages in one PDF.