// The path to the documents directory. String dataDir = Utils.getSharedDataDir(SaveOneNoteDocToStream.class) + "load/"; String fontFile = Paths.get(dataDir, "geo_1.ttf").toString(); // Load the document into Aspose.Note. Document oneFile = new Document(Paths.get(dataDir, "missing-font.one").toString()); // Save the document as PDF dataDir = dataDir + "SaveUsingDocumentFontsSubsystemWithDefaultFontFromFile_out.pdf"; PdfSaveOptions options = new PdfSaveOptions(); options.setFontsSubsystem(DocumentFontsSubsystem.usingDefaultFontFromFile(fontFile)); oneFile.save(dataDir, options);