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

Free Support Forum - aspose.com

Convert DOCX to PDF with fonts and Bullet LIst

Hi,
I’m creating a Word document with ReportEngine. After creating it I would like to save it in pdf. How can I include the font and bulletList?

			PdfSaveOptions saveOptions = new PdfSaveOptions();
		saveOptions.setAllowEmbeddingPostScriptFonts(true);
		saveOptions.setSaveFormat(saveFormat);
		saveOptions.setEmbedFullFonts(true);

Report_out.docx (61.2 KB)

@Blegork,
Please check the following output PDF file I got on my side:

As I can see, the file includes both the fonts of input document and the bullet list. Could you please tell, if the output is wrong, or provide more information about your requirement? We will then provide you more information about your query.

The output is perfect. Can you provide the code?
The problem is on linux, because the font is not installed

@Blegork,
Please check the following code:

Document doc = new Document("C:\\Temp\\report_out.docx");

PdfSaveOptions saveOptions = new PdfSaveOptions();
saveOptions.setAllowEmbeddingPostScriptFonts(true);
saveOptions.setSaveFormat(SaveFormat.PDF);
saveOptions.setEmbedFullFonts(true);

doc.save("C:\\Temp\\report_out.pdf", saveOptions);

To install the required font on linux, please check the following topic: