68
Views
4
Comments
Solved
[Ultimate PDF] Ultimate PDF : Issue with generating PDF with nested lists.
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive

I have an application that is using Ultimate PDF to generate some simple PDFs . So I am kind of invested in this forge component

I have a more complex requirement where I need to generate a PDF that uses nested lists.

The issue I am having is after the first iteration of the outer list, the Bottom Content no longer gets generated on the page, and an extra blank page gets produced each time.

Before I generate the PDF, I display a page to the user and it looks all fine on the Preview page. I have tried many different things. For example, adding page breaks/section breaks, removing the Footer and bottom content and I still get the extra pages

I have created a simple working example based on some sample data. It's not as complex but still causing this issue.  

In this working example, you will find the issue on page 5 of generated pdf.

I'm just not sure where to go from here so hoping this forum community can help!!!

NatsSandBox.oml
2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Natalie. Thanks for sending an example module to reproduce the issue.

This will be fixed in the next release. As a workaround, please add "display: contents" style to your list widgets.

UserImage.jpg
Natalie Keelan

Thanks Leonardo for taking the time to fix this issue. Excellent news! 

I have implemented your workaround and it has resolved the issue.

UserImage.jpg
Linh Tuong

This does not work for me, I need to generate a PDF of more than 50 pages but the data no longer gets generated on the page, and an extra blank page gets produced each time for pages bigger than 16. After I apply "display: contents", the number changes to 26, and all pages bigger than 26 no longer get generated.

Do you have any solution for that? @Leonardo Fernandes 

2025-12-15 09-29-24
Thibaut G

Hi Natalie,
If you are not able to find a correct solution with Ultimate PDF because it does not meet the requirements, you might want to consider alternative solutions like PDF Generator API (not free).

Kind Regards

Thibaut 

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Hi Natalie. Thanks for sending an example module to reproduce the issue.

This will be fixed in the next release. As a workaround, please add "display: contents" style to your list widgets.

UserImage.jpg
Natalie Keelan

Thanks Leonardo for taking the time to fix this issue. Excellent news! 

I have implemented your workaround and it has resolved the issue.

UserImage.jpg
Linh Tuong

This does not work for me, I need to generate a PDF of more than 50 pages but the data no longer gets generated on the page, and an extra blank page gets produced each time for pages bigger than 16. After I apply "display: contents", the number changes to 26, and all pages bigger than 26 no longer get generated.

Do you have any solution for that? @Leonardo Fernandes 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.