Hi,
- We attach the fonts in the Office Word, but the problem still exists:
The marks of footnote on PDF are still a blank box.
The converting PDF code is:
com.aspose.words.Document doc;
try {
License license = new License();
license.setLicense("maastphocshe");
File file1 = new File(newWordPath);
String wordName=file1.getName();
if(wordName!=null && !"".equals(wordName)){
wordName=wordName.substring(0, wordName.lastIndexOf("."));
String path = pdfPath + "\\"+wordName+ ".pdf";
File file = new File(path);
doc = new com.aspose.words.Document(newWordPath);
com.aspose.words.Document doc1 = new com.aspose.words.Document();
doc1.removeAllChildren();
doc1.appendDocument(doc, ImportFormatMode.USE_DESTINATION_STYLES);
doc1.getCompatibilityOptions().setUseFELayout(true);
doc1.getStyles().getDefaultFont().setLocaleIdFarEast(2052);
doc1.getStyles().getDefaultFont().setName("楷体_GB2312");
doc1.getStyles().getDefaultFont().setNameFarEast("楷体_GB2312");
try (FileOutputStream os = new FileOutputStream(file)) {
doc1.save(os, SaveFormat.PDF);
return path;
}
}
2. The footnote marks are still missing

The code of inserting footnote
Paragraph paragraph= new Paragraph(docx);
Run runp = new Run(document);
runp.setText("accounting for about 75% of membranous nephropathy (MN) cases");
paragraph.appendChild(runp);
Footnote footnote = new Footnote(docx, FootnoteType.FOOTNOTE);
footnote.getFont().setBold(false);
footnote.getFont().setSuperscript(true);
footnote.getFont().setName("楷体_GB2312");
footnote.getFont().setNameFarEast("楷体_GB2312");
footnote.isAuto(true);
paragraph.appendChild(footnote);
Paragraph para = new Paragraph(docx);
Run run = new Run(document);
run.setText("Renal functions were stable.");
para.appendChild(run);
footnote.appendChild(para);
Paragraph para1 = new Paragraph(docx);
Run run1 = new Run(document);
run1.setText("Ddddddd");
para1.appendChild(run1);
footnote.appendChild(para1);
Run runp1 = new Run(document);
runp1.setText("About 20%-30% IMN patients");
paragraph.appendChild(runp1);