Forum


Replies: 1   Views: 1159
Issue with page numbering
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by hotspot22  · 09-07-2021 - 10:02

Hi,

I'm using a DOCX with 7 pages. These pages include some template blocks that will be removed if necessary so at the end there are 4 pages left.

The page numbering is shown in the footer as "Page X of Y". And I've activated that the first page has different header and footer than the other pages.

The issue: When openig the generated DOCX, the first page shows "1 of 7", the following pages show correct "X of 4". When transforming this document to PDF with phpdocx 9.5 premium & LibreOffice it's the other way around. The first page shows correct "1 of 4" and the following pages show "X of 7".

Any ideas why this is happening and how to solve?