I have a DOCX file that contains a special character (a checked checkbox) and when I save it to DOCX it works fine but when I save it to PDF the character is replaced by an empty box.
I’m currently using Aspose Words for Java 18.12 and Aspose PDF 19.1 (I don’t actually think the PDF version matters) but I also tried with the latest versions of both.
This is the code I’m using:
final Document doc = new Document(BASE_PATH + “file.docx”);
doc.save(BASE_PATH + “output.pdf”);
doc.save(BASE_PATH + “output.docx”);
and this is the file.docx file.docx.zip (10.3 KB)
Another thing I noticed is that if I try to use the font Wingdings to create this checkbox (the x character of this font) the pdf file has an x in another font.
I’m running this code on Mac OS.