When you save a report in Portable Document Format (PDF), the data is printed to a PostScript file and automatically distilled to PDF using GNU Ghostscript. You can save all types of reports to PDF except OLE and RichText reports.
DataWindow Designer uses a PostScript printer driver specifically designed for distilling purposes to configure the PDF output. You can choose to use a different PostScript printer driver if you want to customize your PostScript settings for generating PDF.
Users must have administrative privileges to create a PDF file.
To use a custom PostScript printer driver, you must set some properties.
To save customized distilled PDF output in the DataWindow painter:
Select the Data Export tab in the Properties view for the DataWindow object.
Select PDF from the Format to Configure drop-down list, select Distill! from the Method drop-down list, and select the Distill Custom PostScript check box.
Select the Print Specifications tab and specify the name of the printer whose settings you want to use in the Printer Name box.
Save the DataWindow object, then select File>Save Rows As, select PDF as the Save As Type, specify a file name, and click Save.
To support saving as PDF using GNU Ghostscript, you must install Ghostscript files from the GNU Web site. The default PostScript printer driver and related files are installed in the drivers directory.
When you deploy applications that use the ability to save as PDF using the distill method, the Ghostscript files and the drivers directory must be in the same directory as the pbdwe105.dll runtime file. For example, if you deploy your application and pbdwe105.dll and the other PowerBuilder runtime files in a directory called MyApplication, the Ghostscript files must be in MyApplication\gsn.nn, and the default PostScript printer driver and related files must be in MyApplication\drivers.
See the chapter on deploying your application in the Programmer’s Guide for information about redistributing these files.