Missing footnotes after DOCX to PDF/HTML conversion

I have converted a *.docx document to *.pdf and *.html format with Aspose.Words and the result documents have a few inconsistencies.

The most affected pages:

  • 2: footnotes 2 and 3 are missing;
  • 3: footnotes 4 and 5 are missing;
  • 5: footnote number 6 is changed to 2;
  • 7: footnote 7 is missing.

I also tried to save the document to *.docx after the conversions and it is missing mentioned footnotes as well. If the documents in resaved to *.docx right away, all footnotes are present.
MS Word preserves all footnotes when printing or exporting to *.pdf.
I attached the document.

Code sample:

var optPdf = new PdfSaveOptions();
doc.Save(outputFile, optPdf);

var optHtml = new HtmlFixedSaveOptions()
{
	PageSet = new PageSet(new PageRange(0, int.MaxValue)),
	ExportEmbeddedCss = true,
	ExportEmbeddedFonts = true,
	ExportEmbeddedImages = true,
	ExportEmbeddedSvg = true
};
doc.Save(outputFileHtml, optHtml);

doc.Save(outputFileDocx, SaveFormat.Docx);

I use Aspose.Words.dll 25.2.0.0 and Microsoft® Word for Microsoft 365 MSO (Version 2501 Build 16.0.18429.20132) 64-bit.
test31.zip (21.0 KB)

@licenses

It seems you are experiencing issues with missing footnotes after converting a DOCX document to PDF and HTML formats using Aspose.Words. This can be frustrating, especially when the footnotes are present in the original DOCX file but not in the converted formats.

Here are a few suggestions to troubleshoot and potentially resolve the issue:

  1. Check Aspose.Words Version: Ensure you are using the latest version of Aspose.Words. You mentioned using version 25.2.0.0; if there are newer versions available, consider upgrading as they may contain bug fixes related to footnote handling.

  2. Use PdfSaveOptions: When saving to PDF, you can customize the PdfSaveOptions. Although your current implementation looks standard, you might want to explore additional options that could affect how footnotes are rendered. For example, you can enable or disable certain features that might influence the output.

  3. Export to DOCX First: Since you mentioned that saving the document directly to DOCX retains all footnotes, you could try exporting to DOCX first and then converting that DOCX to PDF or HTML. This two-step process might help in preserving the footnotes.

  4. Review Document Structure: Sometimes, the structure of the original document can affect how content is rendered in the output formats. Ensure that the footnotes are correctly formatted in the original DOCX file.

  5. Check for Warnings: Implement a warning callback to capture any warnings during the conversion process. This can provide insights into what might be going wrong during the conversion. You can set up a warning callback like this:

    HandleDocumentWarnings callback = new HandleDocumentWarnings();
    doc.WarningCallback = callback;
    

    After saving, you can check callback.mWarnings for any issues that were encountered.

  6. Test with Different Documents: If possible, test the conversion with a different DOCX file that contains footnotes to see if the issue persists. This can help determine if the problem is document-specific.

If these suggestions do not resolve the issue, consider reaching out to Aspose support with the specific document you are working with, as they may be able to provide more targeted assistance.

Feel free to ask if you have any further questions or need additional help!

Sources:

@licenses
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-27914

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.