Good morning,
I have a problem converting a word to pdf with the field NUMPAGES.
For a reason that I do not know, I repeat the number of pages as many times as there are pages in the document.
I send you an example of the word and two results.
The code is very simple:
Document doc = new Document(@"D:\OnePages.Docx");
doc.SaveToFile(@"D:\OnePage.pdf", Spire.Doc.FileFormat.PDF);
Document doc = new Document(@"D:\FivePages.Docx");
doc.SaveToFile(@"D:\FivePages.pdf", Spire.Doc.FileFormat.PDF);
Thank you very much for your help!