Error rendering page number: !Unexpected end of formula

Hello,

We are getting an error rendered in a document when converting DOCX to PDF with certain cases of page number fields.

We are on Aspose.Words v 24.3.

Attached please find a minimal example to reproduce the issue:


field_error_repro.docx (13.9 KB)

Regards,
Draftable Team

@draftable
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-26722

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

As a workaround you can disable rendering revisions:

Document doc = new Document(@"C:\Temp\in.docx");
doc.LayoutOptions.RevisionOptions.ShowRevisionMarks = false;
doc.LayoutOptions.RevisionOptions.ShowRevisionBars = false;
doc.Save(@"C:\Temp\out.pdf");

or accept revisions before rendering the document.

1 Like

Many thanks for the prompt response. Our product relies on rendering revisions so we cannot use that workaround. But looking forward to updates on the issue.

1 Like