ACF articles

More
1 year 1 month ago #98 by MiltosZ
ACF articles was created by MiltosZ
Hi,
I started using the PDF Creator and everything’s working fine. However, there’s one issue: I’m using ACF Articles, and in some cases the list of articles is quite long (40+ articles), which causes the list to overflow the page and break the layout. Is there a way to make the article list continue smoothly onto the next page?
Miltos

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #99 by yberges
Replied by yberges on topic ACF articles
Hello, actually this is normal. Dompdf, the library that converts HTML into PDF, can sometimes have issues handling content breaks and moving to the next page. Since you are loading dynamic data, it’s even more complex to determine where to split the content. The only solution is to work on your design to try to implement a specific fix. On the PDF generator side, there is a page-break block that allows you to force a page break. You might need to split your loading into two blocks by calculating the maximum number of elements possible before switching to a new page with a page break.
Maybe you can post a screenshot of your template ?

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #100 by MiltosZ
Replied by MiltosZ on topic ACF articles
Yes, it was an oversight. I'm sending a file to make things clear.
Miltos

Please Log in or Create an account to join the conversation.

More
1 year 1 month ago #101 by yberges
Replied by yberges on topic ACF articles
i think the probem is the column, dompdf can't brake it.
i recommand for testing to put you filed after column in a signle container.
The following user(s) said Thank You: MiltosZ

Please Log in or Create an account to join the conversation.