Courier vouchers are issued in pdf format. In order to print them automatically on the default printer, a pdf printer software must be set in courier.ini file (in EMDI root folder). Any pdf reader that supports print via line command can be easily used.
For example:
Ghostscript
To print automatically it must be configured in the courier.ini file, located in the main EMDI folder:
1 2 3 |
[general] pdf_attributes=-dNORANGEPAGESIZE -dPrinted -dNoCancel -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -dQueryUser=3 -sDEVICE=mswinpr2 pdf_software=C:\Program Files (x86)\gs\gs9.52\bin\gswin32c.exe |
for help:
1 |
"C:\Program Files (x86)\gs\gs9.52\bin\gswin32c.exe" -h |
PDF24
1 2 3 |
[general] pdf_attributes=-shellPrint -printerName printername pdf_software=C:\Program Files\PDF24\pdf24-DocTool.exe |
for help:
https://creator.pdf24.org/manual
Foxit Reader
1 2 3 |
[general] pdf_attributes=/p pdf_software=C:\Program Files (x86)\Foxit Software\Foxit PDF Reader\FoxitPDFReader.exe |
for help:
1 |
"C:\Program Files (x86)\Foxit Software\Foxit PDF Reader\FoxitPDFReader.exe" /help |
1 2 3 |
[general] pdf_attributes=/t pdf_software=C:\Program Files (x86)\Foxit Software\Foxit PDF Reader\FoxitPDFReader.exe |
Bullzip PDF Printer
1 2 3 |
[general] pdf_attributes=command=printpdf input= pdf_software=C:\Program Files\Bullzip\PDF Printer\pdfcmd.exe |
1 |
for help: https://www.bullzip.com/kb/pdf-command/ |
Note about the printer name
The name of the printer used with RDP is changed, such as Test Printer (redirected 1), Test Printer (redirected 2). The asterisk * is the text we want to ignore.
To use this feature, we place the printer name in brackets.
1 |
[Test printer*redirected] |
In the example, we write the name of the printer up to the point where it does not change, and at the end we put the * symbol and brackets on the left and right.
1 |
[Test printer redirected*] |