Text is Pushed up to Previous page in output document | Convert DOCX to PDF using .NET

Hi Aspose Team,

We are encountering some problems when converting some DOCX documents to PDF.
When converting a document, some parts of this document are not rendered in the same place as in the original Word document. In addition, the number of pages in the PDF document may be different than in the Word document.
It is important for us to keep an exact conversion in the location of the texts as these documents are contractual documents.

The version of Aspose.Words used is the latest .net dll: 21.1.0
No option defined for the conversion, here is the simple code used:

Aspose.Words.Document document = new Aspose.Words.Document(@"C:\Temp\test.docx");
document.Save(@"C:\Temp\test.pdf");

I attach also a zip file containing a Word document and the resulting PDF file.
test.zip (275.9 KB)

Thanks for your help.

@jla_ivalua

Please note that Aspose.Words mimics the behavior of MS Word. If you update the TOC field and save the document to PDF using MS Word, you will get the same output.

In your case, the the text ‘TABLE OF CONTENTS’ is rendered on the first page. However, it should render on the second page. For the sake of correction, we have logged this problem in our issue tracking system as WORDSNET-21657. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-21657) have been fixed in this Aspose.Words for .NET 23.5 update also available on NuGet.