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"
}
}