Hello everyone.
I'm currently facing an issue when generating a PDF, where content that is supposed to be shown together in a page, is breaking in two.
Below is a picture of an example where the red box is the header of the next page, the green is the content that is not supposed to break, and in blue the next content section.
I've tried applying CSS classes and UltimatePDF WBs to attempt to force a page break before the first section (break-before:always), or to avoid breaking (break-inside:avoid), but to no avail.
Below is a picture of the structure of the WB, which is then used on the main screen to be downloaded
The Operations Cnt is where i attempted to apply said classes.
Any suggestions on how to proceed?
Thanks.
If you still need the answer. There is a block called AvoidBreak inside the UltimatePDF module you can use and any content you'll add inside it it will not break.
Hello Moussa, unfortunately that block did not work for my use case.
I've tried many tricks to make it work but to no avail.
What did work was restructuring the CSS on the page, making sure no conflicts where happening between classes (display: inline-block usually interferes with these things, as well as some other ones like certain flex attributes).
That did the trick
@Rodrigo Alves If possible can you attach a oml.
Hi Naveen, unfortunately i can't upload the OML, but i can provide you with the information you may require
Yes, I understand you cannot attach official one but create a same scenario in your personal environment with dummy content and attach that oml. I hope mostly it will be a css fix.
Hi @Rodrigo Alves,If you fixed the issue, could you please provide your solution?
Check my answer if you still interested