Page numbers only visible on first page with PDF Document Generation (Cloud)

0
Hi all,   We've recently switched to the new PDF document generation module. For some reason we're having issues with the page numbers. When we test the functionality locally, everything works fine and looks like expected. However when we deploy it to the cloud environment, the page numbers are only visible on the first actual page of the document. It still shows for example 1/5 pages, but the page indicator isn't visible on the rest of the pages.   - The pages look identical when viewing them with page inspector. - We've used different versions of the layout - We've used versions with and without layout grid, with the phone and tablet width set accordingly. - We've used versions with just text, no complex page building - We've upgraded to the latest version of the module   I'm a bit lost on how to proceed with this issue, debugging is hard as the issue only occurs on Cloud environment.    Colleagues note that the page numbers have been working on our production environment. We did not make specific changes to that version and the issue is now also happening on that environment.   Has anyone experienced the same issue, or has any tips for solving issues like this?   Kind regards,    
asked
1 answers
1

For anyone seeing this post.

 

The issue turned out to be some specific SCSS. Because we used a header image in the layout (which is then only applied to the first page), the requirement was for the other pages to have some spacing on the top of the page. Therefore custom SCSS was applied that was targeting the @page selector and applying margin to all pages except the first one, which made the page numbers of all other pages getting pushed just outside the page.

 

Turns out the widget created by Aiden did exactly what we needed, and made it possible to add a header image to each page, or leveraging the header to apply spacing to each page.

https://marketplace.mendix.com/link/component/212764

 

answered