> For the complete documentation index, see [llms.txt](https://doc.sysdevmobile.com/mss-extensibility/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sysdevmobile.com/mss-extensibility/mss-5.1/functions-kalipso-to-mss/print/ext_print_document.md).

# EXT\_Print\_Document

Function to ask MSS to print a document.

*Input parameters*:

* inDocumentExercise – Exercise of the document;
* inDocumentType – Type of the document;
* inDocumentSeries – Series of the document;
* inDocumentNumber – Number of the document;
* inPrintPDF – To create only a PDF file (the document rules are applied);
* inPrintSecondLayout – To print the secondary layout if the document is configured to do it;
* inDontOpenPDF – When printing to PDF, MSS automatically asks if the user wants to open it;
* inParameter1 – User parameter 1
* inParameter2 – User parameter 2
* inParameter3 – User parameter 3
* inParameter4 – User parameter 4
* inParameter5 – User parameter 5

*Output parameters*:

* outResultCode – Return code: 0 – Done / < 0 User canceled selection or error occurred;
