Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

invoke OCI doc generator function with inline json

DaudApr 14 2025

Apex 24.1.7

I would like to be able to generate pdf with some dynamic data.

I have been able to successfully generate the pdf for the case where both the json input data and the template document are in the OCI object storage.

Now, I would like to be able to send the json data inline but I am not sure how to do it.

Has anyone done this and has a sample code?

{
"requestType": "SINGLE",
"tagSyntax": "DOCGEN_1_0",
"data": {
"source": "OBJECT_STORAGE",
"namespace": "xxxx",
"bucketName": "xxx-store",
"objectName": "test-data.json",
"contentType": "application/json"
},
"template": {
"source": "OBJECT_STORAGE",
"namespace": "xxxxxxx",
"bucketName": "xxxxx-store",
"objectName": "test-pdf.docx",
"contentType": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
"output": {
"target": "OBJECT_STORAGE",
"namespace": "xxxxxx",
"bucketName": "xxxxx-store",
"objectName": "testdoc-inline-json.pdf",
"contentType": "application/pdf"
}
}

This post has been answered by jariola on Apr 14 2025
Jump to Answer
Comments
Post Details
Added on Apr 14 2025
7 comments
78 views