The CL_FP_ADS_UTIL
class provides the ABAP Runtime API for Adobe Document Services (ADS) rendering calls. It contains the following Public methods to be used for the corresponding functions:
Method |
Description |
---|---|
|
Rendering PDF |
|
Rendering for Print Queue |
The PDF rendering process on ADS creates the PDF file to be printed (or print output format) using the following both formats:
-
XDP form template file
-
Data for the form filling in XML format, for example, data from the RAP Data Services for Print Forms.
The XDP form template file is a description of the form layout design in Adobe XFA format. The supported data binding type is an XML data schema.
The Adobe LiveCycle Designer for SAP solutions is the tool for visual design XDP form templates from Adobe Inc. It can be downloaded using the Install Additional Software app, which contains the download link to the SAP ONE Support Launchpad.
The data XML file contains the data that corresponds to the used data schema in the XDP form template.
The RENDER_PDF
method calls the ADS to render print PDF using the XDP form file and the XML data file. It has the following importing/exporting parameters:
Parameter |
Description |
---|---|
|
XML data |
|
Adobe XDP form template |
|
Locale for rendering the language: |
|
PDF rendering parameters (optional) |
Parameter |
Description |
---|---|
|
PDF rendering result |
|
Number of pages |
|
Trace string |
TRY. *Render PDF cl_fp_ads_util=>render_pdf( EXPORTING iv_xml_data = lv_xml_data iv_xdp_layout = lv_xdp iv_locale = 'de_DE' is_options = ls_options IMPORTING ev_pdf = ev_pdf ev_pages = ev_pages ev_trace_string = ev_trace_string ). CATCH cx_fp_ads_util INTO lx_fp_ads_util. ENDTRY.
The RENDER_4_PQ
method calls the ADS to render in the print output format required for the target print queue. The support of the Print Definition Language (PDL) print queue format will be taken from print queue properties.
Parameter |
Description |
---|---|
|
XML data |
|
Adobe XDP form template |
|
Locale for rendering the language: |
|
Print Queue name |
|
PDL rendering parameters (optional) |
Parameter |
Description |
---|---|
|
PDF rendering result |
|
Number of pages |
|
Trace string |
TRY. *Render in Print Queue Format cl_fp_ads_util=>render_4_pq( EXPORTING iv_xml_data = lv_xml_data iv_xdp_layout = lv_xdp iv_locale = 'en_US' iv_pq_name = 'PQ1' is_options = ls_options IMPORTING ev_pdf = ev_pdf ev_pages = ev_pages ev_trace_string = ev_trace_string ). CATCH cx_fp_ads_util INTO lx_fp_ads_util. ENDTRY.