Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Saving the data as PDF – PB Docs 2022 – PowerBuilder Library

Saving the data as PDF – PB Docs 2022

Saving the data as PDF

PowerBuilder provides several ways to save a DataWindow object
or DataStore in Portable Document Format (PDF).

Using PDFlib

Starting from PowerBuilder 2017, an alternative method is
provided to directly print data to PDF without needing to install any
third-party tool or driver or make any configuration. This method
relies on a light-weight software called PDFlib which is automatically
installed with PowerBuilder at no cost. And the DLL file for PDFlib
(PBPDF.dll) is automatically packaged into the PowerBuilder
application executable as well without requiring the developer to make
any configuration or selection during the building process.

Starting from PowerBuilder 2019 R3, for new DataWindows, this
method is automatically selected as the default PDF method (instead of
the Distill! method with Ghostscript); but for existing DataWindows,
you may need to manually set this method as the default PDF method
using one of the ways described in section Saving as PDF using NativePDF!
method with PDFlib
.

Using Ghostscript

Starting from PowerBuilder 2019 R3, the Distill! method with
Ghostscript is no longer the default method for new DataWindows when
you select File>Save Rows As and select PDF as the file type. But
for existing DataWindows, the Distill! method is still the default
option in order to keep compatibility with the existing logics.

When using Ghostscript, the data is printed to a PostScript file
first and then distilled to PDF using Ghostscript.

Installing Ghostscript and PostScript drivers

For licensing reasons, Ghostscript and the PostScript drivers
required to use the Distill! method are not installed with
PowerBuilder. You (and your users) must download and install them
before you can use this technique. See System requirements for the Distill!
method
.

Limitations and unsupported
features

The Ghostscript method and the PDFlib method currently do not
support OLE DataWindow objects.

The PDFlib method currently does not support the DataWindow
object’s background.property and the DataWindow object’s margin
settings.

The RichText DataWindow can directly generate a PDF file (using
the DataWindow SaveAs function) without needing to specify the PDF
method first, because it uses the PDF solution provided by TX Text
Control, rather than using PDFlib or Ghostscript. Therefore, you can
directly execute the following script to generate a PDF in the
RichText DataWindow: dw_1.SaveAs (“c:dw_one.pdf”, PDF!,
false).


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