Skip to Main Content

Document Generator Pre-Built Function

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!

Docx Template: images and page breaks

FrederikJVMay 14 2025

Dear Team,

I have setup Document Generator Function for Oracle Apex (24.2/OCI) with Rest Data Source (docx template > pdf). I use images in this report. In my case 1 question can have more images (displayed below the question). I have width: 300px per image, 2 per row.

I use the following tags in the docx template (simplified):

{#run.questions}
{question}
{#images}{%my_image}{/images}
{/run.questions}

This works fine. However the images get generated as a block in the pdf - potentially moving the images to next page, wich leaves a lot of white space on the pages. My goal is to have pagebreaks within the image loop. I had a look at the existing tags (like filter, break, group), but found no solution for this issue.

Do you have any suggestions?

This post has been answered by FrederikJV on May 19 2025
Jump to Answer
Comments
Post Details
Added on May 14 2025
8 comments
295 views