Description
Setting that determines whether data is exported to PDF from a DataWindow object by printing to a PostScript file and distilling to PDF, or by saving to PDF via PDFlib.
Applies to
DataWindow objects
Syntax
PowerBuilder dot notation:
dw_control.Object.DataWindow.Export.PDF.Method
Describe and Modify argument:
"DataWindow.Export.PDF.Method { = 'value' }"
Usage
This property can be set to specify the method used to export data to PDF before you call the SaveAs method with PDF! as the SaveAsType or select File>Save Rows As with the file type PDF in the DataWindow painter. If this property is not set, the distill method is used by default.
PDFMethod is an enumerated datatype that can hold the following values:
Enumerated value |
Numeric value |
Meaning |
---|---|---|
Distill! |
0 |
Data is printed to a PostScript file and distilled to PDF (default). |
NativePDF! |
2 |
Data is saved to PDF using PDFlib. |
Saving as XSL-FO
You can also save the data in a DataWindow object in XSL-FO format and customize the filters used to convert it to PDF and other output formats. To do so, use XSLFO! as the SaveAsType parameter when you call SaveAs, or select XSL-FO as the file type when you save rows in the DataWindow painter.
Deployment requirements
If your application uses the distill method, you must distribute the GNU Ghostscript files and default PostScript printer driver and related files (if using the default printer) with your application. For more information, see the section called “Deploying Applications and Components” in Application Techniques.
In the painter
On the Data Export page in the Properties view for the DataWindow object, select "PDF" from the Format to Configure list and "Distill!" or "NativePDF!" from the Method list.
Examples
This statement specifies that data is exported to PDF using PDFlib:
dw1.Modify ("DataWindow.Export.PDF.Method = NativePDF! ")
See also
Export.PDF.Distill.CustomPostScript
Export.PDF.NativePDF.CustomOrientation
Export.PDF.NativePDF.CustomSize
Export.PDF.NativePDF.ImageFormat
Export.PDF.NativePDF.MasterPassword
Export.PDF.NativePDF.PDFStandard
Export.PDF.NativePDF.Restrictions
Export.PDF.NativePDF.UserPassword
Export.PDF.NativePDF.UsePrintSpec
the section called “Saving the data as PDF” in Users Guide