Printing to PDF

You can use two techniques to save the data in a DataStore to PDF: Using the GNU Ghostscript distiller, and using the ability to process data using XSL Formatting Objects (XSL-FO). You can save the DataWindow object’s data to XSL-FO or PDF, and print using Java printing.

Using the GNU Ghostscript distiller

To use the GNU Ghostscript distiller, you must make sure that Ghostscript files and the default PostScript printer driver and related files are installed on the server in the same directory as the PowerBuilder runtime files. The Ghostscript method is not supported on UNIX.

Using XSL-FO

To use XSL-FO, the Apache XSL Formatting Objects processor (FOP) must be installed on the server in the same directory as the PowerBuilder runtime files, and the following JAR files must be in the classpath:

You can add these files to the CLASSPATH environment variable or to User_setenv.bat or Serverstart.bat.

When you use XSL-FO with EAServer to produce a PDF file, detailed informational and warning messages are written to the Jaguar log. To suppress all these messages, set the PB_FOP_SUPPRESSLOG environment variable to 1.

For more information, see the chapter on enhancing DataWindow objects in the PowerBuilder Users Guide.