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

Free Support Forum - aspose.com

Bulleted list docx not converted properly to PDF

Hello,

We are using a Linux machine with Java 1.8.161 and aspose Words 19.2 (also tried the more recent 19.11) to convert docx documents to PDF. The font used is arial.

The problem we have is with the docx default Word bulleted list.
This list is not converting properly on the Linux machine, on a development Macbook it is not working properly either. On a Windows development machine everything is fine.

Guided by https://docs.aspose.com/display/wordsjava/True+Type+Fonts#TrueTypeFonts-HowAspose.WordsUsesTrueTypeFonts we have installed the msttcorefonts and even moved all the files from c:/Windows/fonts from a working development laptop to the Linux machine.
When we removed all the files in /usr/share/font/msttcore exceptions where thrown, that is how we determined that those files were used. We moved the Windows fonts manually to that location.

The first time we noticed the bulleted list error is when we upgraded from 14.8.0-jdk16 to 19.2

I will attach 3 files in a ZIP: The input .docx file, the macbook out PDF and linux out PDF when running below code:

Document doc = new Document(dir + "example_document.docx");
doc.save(dir + "out.pdf");

bulleted_list_examples.zip (45.4 KB)
Hopefully you can advice me how to fix this problem,

Niels Jan

@Niels_Jan

Please try the latest version of Aspose.Words for Java 19.11 and implement IWarningCallback to receive notification of missing fonts. Hope this helps you.

If you still face problem, please ZIP and attach your problematic output PDF here for our reference. We will then provide you more information about your issue.