When saving a document in PDF format, page fields are displayed incorrectly.
@benestom Could you please attach your input and output documents here for testing? We will check the issue and provide you more information.
@benestom Aspose.Words updates the PAGEREF
fields the same way as MS Word does. For example see PDF document produced by MS Word 2019 on my side:
ms.pdf (1.2 MB)
If disable updating fields upon saving to PDF, PAGEREF
fields have the same values as in the source MS Word document:
Document doc = new Document(@"C:\Temp\in.docx");
PdfSaveOptions opt = new PdfSaveOptions();
opt.UpdateFields = false;
doc.Save(@"C:\\Temp\\out.pdf", opt);
out.pdf (593.1 KB)