48.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,
p_output_password IN VARCHAR2 DEFAULT NULL )
RETURN BLOB;Parameters
| Parameter | Description |
|---|---|
p_data |
Data for the document. Currently JSON format only. |
p_template_id |
ID of the template. |
p_output_type |
The type of document. Currently only c_output_pdf. |
p_output_password |
The password to needed to open the generated document. PDF only. |
Returns
A BLOB containing the generated document.
Example
Parent topic: APEX_PRINT