Hello,
Describe the case
I’m creating .docx and .pdf documents from HTML templates using Aspose.Words for .Net.
In version 24.2, Aspose.Words for .Net was adding Header and Footer to every page.
I want to upgrade to newest version, but starting from version 24.3, header and footer is only on last page. This is also the case for version 25.3.
There is also a change in Section Break on the end of 3rd page. In v24.2 it was Section Break (Continuous), but in 24.3 and newer it is Section Break (Next Page).
Describe the ask
I’m asking for help with making the header and footer appear on every page, just as it was in version 24.2.
Additionally, can you provide me with a mapping of HTML tags and CSS page breaks to MS Word document? This would make it easier for me to know how the HTML should look like.
Reproduction steps and samples
I’ve attached generated documents and also the code to reproduce the issue. The HTML template I’m using can be found in “minimalrepro.html”.
You can find documents in .pdf and .docx version in “results” folder.
To run reproduction steps, provide a valid licence in “wordsissue\Licences\Aspose.Words.Net.lic”.
You can run the test case with powershell script “testcase.ps1” - it will first add Aspose.Words v24.2 and generate documents, then it will upgrade to v24.3 and generate documents, then it will upgrade to v25.3 and generate the documents, then will change nuget to v24.2. Results will be available in “results” folder. You can also open the .sln and run the test there - results will be saved in the “wordsissue\bin” folder.
asposewords-issue.zip (300.8 KB)