Printing to PDF – PB Docs 125

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:

  • fop-0.20.4uildfop.jar

  • fop-0.20.4libatik.jar

  • fop-0.20.4libxalan-2.3.1.jar

  • fop-0.20.4libxercesImpl-2.1.0.jar

  • fop-0.20.4libxml-apis.jar

  • fop-0.20.4libavalon-framework-cvs-20020315.jar

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.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x