// 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 + "SaveUsingDocumentFontsSubsystemWithDefaultFontFromStream_out.pdf"; InputStream stream = new FileInputStream(fontFile); try { PdfSaveOptions options = new PdfSaveOptions(); options.setFontsSubsystem(DocumentFontsSubsystem.usingDefaultFontFromStream(stream)); oneFile.save(dataDir, options); } catch (Exception e) { stream.close(); }