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

Free Support Forum - aspose.com

Document.OriginalLoadFormat throws IllegalStateException using Java


The following code throws IllegalStateException: Inaccessible because font is defined by theme font

Document doc = new Document(src);
doc.save(dst, doc.getOriginalLoadFormat());

Sample: font.zip (18.8 KB)


We have tested the scenario using the latest version of Aspose.Words for Java 20.1 and have not found the shared issue. So, please use Aspose.Words for Java 20.1.