ECN-4422 PDF Printing Support

Type of Change: Enhancement

Product: ACUCOBOL-GT

Module: Runtime

New Version: 10.1.0

Machines Affected: All

DESCRIPTION:

Use the -P PDF filename syntax in your runtime configuration file to write output to a PDF file named filename. There are a number of configuration variables that enable you to tailor the formatting of the text; they cover such things as font and font-size selection, margin settings, and page orientation. See Spooler Print Formatting for more details.

Example:

With no modifications to an existing COBOL program, you can use the runtime configuration file to print to a PDF file instead of a printer.

If the COBOL program contains the following ASSIGN clause:
SELECT PRINT-FILE ASSIGN to PRINTER
You can assign PRINTER to be a PDF file, and configure it, using such variables in your runtime configuration file:
PRINTER -P PDF report.pdf
PDF_PAGE_SIZE LETTER
PDF_FONT_NAME HELVETICA
Note: If you want to specify a PDF file directly in your source code, you can include the assignment in the SELECT statement instead of the configuration file: SELECT PRINTER ASSIGN to "-P PDF report.pdf".