Hello
I use spire.doc 8.2.4
Format PDF et DOCX diverge
it's annoying in the table of contents where the page numbers are incorrect in the PDF version.
See attachment (code, source document and pdf, docx result)
Sorry, but I have not simplified my code, I do not know where exactly the problem is.
see chapter 5 which is given on page 18 of the table of contents and can be found on page 17 of the PDF