Bad refpage fields when generating PDF

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.

Here is the file to convert as a PDF:
2TS233p_A (1).docx (809.3 KB)

@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)