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

Free Support Forum - aspose.com

How to set fonts in aspose.pdf.Document

I am getting the following error in the following code:
DocSaveOptions saveOptions = new DocSaveOptions();
// Set output file format as DOCX
saveOptions.setFormat(DocSaveOptions.DocFormat.DocX);
//Save the pdf file docx outputstream
asposeDoc.save(wordOutputStream, saveOptions);

Error processing the document com.aspose.pdf.internal.ms.System.l6n: Cannot find any fonts installed on the system.

We have fonts installed under /opt/ajsc/etc/fonts.

How to specify the font path in aspose.pdf.Document?

@dh3490_att_com,

Thanks for contacting support.

Can you please visit this thread. This will help to load fonts from folder as well.