We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Footnote style missing

Hi,

I am using Aspose latest version for document conversion . I am trying to create footnote using below method. After opening the saved document, I can able to see the footnote but not with styles eg : footnote No., superscript styles etc …

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write(“Some text is added.”);

Footnote footnote = new Footnote(doc, FootnoteType.FOOTNOTE);
builder.getCurrentParagraph().appendChild(footnote);
footnote.getParagraphs().add(new Paragraph(doc));
footnote.getFirstParagraph().getRuns().add(new Run(doc, “Footnote text.”));

Do i need to add something else to get footnote styles ?

Thanks,
Anbu

Hi Anbu,

I have managed to reproduce the same problem at my side. Your request has been linked to the appropriate issue and you will be updated via this forum thread once this issue is resolved.

However, you can easily resolve the problem by using InsertFootnote method instead of building footnote from scratch. Please use the following code snippet to resolve this issue.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.write(“Some text is added.”);

builder.insertFootnote(FootnoteType.FOOTNOTE, “Footer Note.”);
doc.save(“d:\AsposeOut.docx”);

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan