46.5 GENERATE_DOCUMENT Function Signature 4
This function generates a document using an uploaded template and returns the contents.
Can only be used when Oracle Document Generator Pre-built Function is configured as print server in the instance.
To be used in combination with the UPLOAD_TEMPLATE Function and REMOVE_TEMPLATE Procedure APIs to generate documents using the same custom template, which is not stored as a report layout.
Syntax
APEX_PRINT.GENERATE_DOCUMENT (
p_data IN CLOB,
p_template_id IN NUMBER,
p_output_type IN t_output_type DEFAULT c_output_pdf )
RETURN BLOB;
Parameters
Parameter | Description |
---|---|
p_data |
Data for the document. Currently JSON format only. |
p_template_id |
ID of the the template. |
p_output_type |
Static ID of the report layout (stored under application's shared components). |
p_output_type |
The type of document. |
Returns
A BLOB containing the generated document.
Example
Parent topic: APEX_PRINT