# Print PDF

When executing the action **Print PDF On Server** from Kalipso, to Print a PDF file using MISCommunicator there are 2 alternatives of executing the print command.

### 1-ShellExecute

The default way MISCommunicator will use to print a PDF file will be issuing a Shell Print command.\
This is equivalent for the user to right click on a PDF file and select the "Print" option.\
This will use the default application on the system configured to print PDF files that has 2 main issues:

* It may open a user interface waiting for some user confirmation to print, which is incompatible with MISCommunicator being executed as a service
* It will probably output the printing to the default system printer, ignoring the parameters received from the **Print PDF On Server** action.

For these reasons, option 2 is normally preferred.

### 2-Using PDFtoPrinter

You can use the PDFtoPrinter.exe file available here:\
<http://www.columbia.edu/~em36/pdftoprinter.html>

To enable this option, all you have to do, is put the PDFtoPrinter.exe file in the same folder as MISCommunicatorEngine.exe.\
When MISCommunicator receives the request from **Print PDF On Server**, it will check if this file exists in the same folder and if it does, it will make the print request issuing a command line request, and in this case the printer name received will be used, and there is no user interface required for the command to be executed.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sysdevmobile.com/miscommunicator/print-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
