We are attempting to convert Word Documents to epub. This works great, unless the document has multiple chapters, and footnotes/endnotes. In that case, the footnote or endnote is rendered in line with the text of the document. If the document only has a single chapter, then the endnotes are put at the end of the document as expected.
Thanks for your inquiry.
I believe this issue was fixed in the latest verison of Aspose.Words. Could you please try using version 10.3.0 if you are not already and seeing how it goes?
If the issue still persists could you please attach the output EPUB here for testing as well as a screenshot which shows exactly where the issue is?
We are using 10.3.0. I have attached the epub and a screen shot. The text to look for is "A student tape recorded…"
Thanks for attaching your documents here.
I managed to reproduce the issue on my side. Your request has been linked to the appropriate issue and you will be notified as soon as it's resolved.
This issue is occuring because by default when the document is saved as EPUB, the HTML is internally split at heading levels 1-2. The split document content is what causes the problem as when it's disabled the foot notes are displayed correctly. I was unable to reproduce this first time as I had this option disabled.
Please use the code below to disable that option for now, however please note that some EPUB readers will be unable to view the output as the size of each chunk will exceed 300kb.
HtmlSaveOptions saveOptions = new HtmlSaveOptions(SaveFormat.Epub); saveOptions.DocumentSplitCriteria = DocumentSplitCriteria.None;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
doc.Save(dataDir + "Document Out.epub", saveOptions);Thanks,