Copy link to clipboard
Copied
I have a Word Template that I fill with data using the Document Generation API.
There is a conditional in the footer that looks for the last page of the document and only then adds the footer text.
When I generate a Word Document (.docx) out of my JSON data and the .docx template, there is no issue.
But generating a .pdf with the same data and same template messes up the pagination and the footer.
My thoughts: The API somehow generates an extra page, on which the footer would be visible. But because this page is empty, the page is removed, thus the footer is not shown anymore?!
Any idea how the generated .pdf can be so different then the generated .docx?
Have something to add?