Retain Footnotes Endnotes Content during Converting MS Word DOCX Document to PDF using C# .NET | Remove Extra Blank Pages

Hi,

We are using Aspose Total for Dot Net Aspose.Words – 16.1.0. While converting file MS-Word to PDF getting infinite loop detected error ‘System.InvalidOperationException: Infinite loop detected’. Please find uploaded sample code also we are using for the reference.

We have also observed that while converting word doc to PDF via Aspose it adds extra page between the pages

Kindly look into this issue provide resolution ASAP as we are facing this issue on production.

Thanks,
Adarsh

@AdarshN,

Please upgrade to the latest (20.6) version of Aspose.Words for .NET and see how it goes on your end? In case the problems still remain, please ZIP and upload your input Word documents (you are getting these problems with) and Aspose.Words generated PDF file showing the undesired behavior here for testing. We will then investigate the issues on our end and provide you more information.

Thank you Awaise for your response,Please find attach sample code we are using, kindly let me know if their is any way to handle it without upgrading it to Aspose 20.6
AsposeDemoNumeringIssue.zip (5.2 MB)

@AdarshN,

The archive “AsposeDemoNumeringIssue.zip” contains only the Visual Studio project; but I am afraid, we have not found any DOCX or PDF files in this archive. Can you please ZIP and upload your input Word documents and Aspose.Words generated PDF file again here for testing? We will then investigate the issues on our end and provide you more information.

Hi Awais,

Please find attach required word and PDF file along with the sample code I have only attached sample code of page skipping issue please refer code shared earlier for infinite loop issue as unable to attache entire code base due to size restriction.

‘Report.docx’ file is for infinite loop issue and ‘Final Report - ABC.docx’ file we used to convert it to PDF where on generated PDF on page no. 10 data skipped to next page. PDF file ‘Level 2-02-07-2020-ABC.pdf’ is also available in attached bundle.

Following are our findings for infinite loop issue if it will help you to investigate issue:

  1. After removing the company research content header it works fine we do not get in
  2. After deleting the business address from report then it works fine.

P.S. Provided document is only for reproducing the issue any other use of the document is AsposeDemoInfiniteloopIssue_3Jul20_2.zip (6.1 MB)

@AdarshN,

These problems occur because you are using a very old 16.1 version of Aspose.Words for .NET on your end. After an initial test with the licensed latest (20.6) version of Aspose.Words for .NET, we were unable to reproduce these issues on our end. Please see the following output PDF files generated on our end:

However, we have noticed that there are 7 pages in Report.docx but Aspose.Words renders 8 pages in PDF. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-20733. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

Hi Awais,

If you check the generated ‘Report.PDF’ it also skipped the footers of “Report.docx” page 5

@AdarshN,

Yes, we have already noticed this problem with footnotes content and mentioned it in the description of WORDSNET-20733. We will inform you via this thread as soon as the linked issue will get resolved in future.

A post was split to a new topic: Help with pricing needed to upgrade to latest version of Aspose.Words

A post was split to a new topic: Footnote content overlaps with main story during DOCX to PDF conversion using C# .NET

The issues you have found earlier (filed as WORDSNET-20733) have been fixed in this Aspose.Words for .NET 21.6 update and this Aspose.Words for Java 21.6 update.