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

Free Support Forum - aspose.com

Cannot find the required font issue


When converting a ppt to pdf we got the following error when the conversion takes place on a Linux server. Works fine on a Mac.

SEVERE: Error saving presentation pdf. com.aspose.slides.obfuscated.mr: java.lang.UnsupportedOperationException: Cannot find the required font. Name:“Dialog.bold”, Style:1, IsExactStyle:false.

Here’s my code (ppt attached):

// Saving the presentation to PDF document

// Instantiate the PdfOptions class

com.aspose.slides.export.PdfOptions pdfOptions = new com.aspose.slides.export.PdfOptions();

// Set Jpeg Quality


// Define behavior for metafiles


// Set Text Compression level


// Define the PDF standard


File thingFolder = LC3Environment.getThingDirectory(thingID, domain);

out = new FileOutputStream(new File(thingFolder, thingFile.getName() + “.pdf”));

// Instantiate a Presentation object that represents a PPT file

if (thingFile.getName().toLowerCase().endsWith(“ppt”)) {

Presentation pptPresentation = new Presentation(in);

pptPresentation.save(out, com.aspose.slides.export.SaveFormat.PDF, pdfOptions);

} else {

PresentationEx pptxPresentation = new PresentationEx(in);

pptxPresentation.save(out, com.aspose.slides.export.SaveFormat.PDF, pdfOptions);


Hi Dave,

I have observed the presentation file shared by you and have been able to export that to PDF sucessfully in Windows environment using Aspose.Slides for Java. You may be getting the issue of missing fonts in you Linux instance as you shared that on MAC you are able to export to PDF sucessfully as well. Please install the fonts used in your presentation in your Linux instance along with latest version of Aspose.Slides for Java 2.7.0.

Many Thanks,

Hi -

The issue is we have no idea what fonts our users will have in the presentations. Is there a way to not have Slides throw an exception, but downgrade to another font?

Hi Dave,

I regret to share that there is no other way then to add the fonts for successful rendering of fonts. Usually, fonts come in packages and many of them get installed. Moreover, ,most of presentations used standard fonts. For successful rendering, the used fonts must be installed.

Many Thanks,