Progress 4GL does not have a function to print PDF files directly. However, it is possible to rely on the operating system to handle this task simply by copying the PDF file to the printer port. For example, the following OS-COMMAND statement will
print the pdf file provided the .pdf extension is properly registered::OS-COMMAND NO-WAIT "copy <filename> <printer name>".Where:
<filename> is a reference to the PDF file
<printer name> is the LPT port or UNC path for the printer.
OS-COMMAND NO-WAIT "copy test.pdf \\printserver\printer1".
In Unix: OS-COMMAND NO-WAIT "lp -d <printer-name> <pdf_file_name>".Where:
<pdf_file_name> is a reference to the PDF file
<printer name> is the name of an available printer in Unix .