Did this article resolve your question/issue?


Your feedback is appreciated.

Please tell us how we can make this article more useful. Please provide us a way to contact you, should we need clarification on the feedback provided or if you need further assistance.

Characters Remaining: 1025



How to print a PDF from Progress

« Go Back


Article Number000022483
EnvironmentProduct: Progress
Version: 9.x
Product: OpenEdge
Version: 10.x, 11.x
OS: Windows, UNIX
Other: Adobe Acrobat Reader
Question/Problem Description
How to print a PDF file from Progress?
Is it possible to print a PDF file from ABL?
How to use pdf with progress?
Steps to Reproduce
Clarifying Information
Error Message
Defect/Enhancement Number
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>".

   <filename> is a reference to the PDF file
   <printer name> is the LPT port or UNC path for the printer.

For example:

OS-COMMAND NO-WAIT "copy test.pdf \\printserver\printer1".

In Unix: 

OS-COMMAND NO-WAIT "lp -d <printer-name> <pdf_file_name>".

   <pdf_file_name> is a reference to the PDF file
   <printer name> is the name of an available printer in Unix .
Known restrictions:
- Some printer ports do not accept direct file I/O as input. For example the XPSPort: used by the Microsoft XPS Document Writer pseudo-printer does not.
- This approach requires the actual printer to support direct PDF printing. There is nothing inbetween the file and the printer that renders the content of the file before printing it.
Last Modified Date10/22/2015 8:36 PM