// For complete examples and data files, please go to https://github.com/aspose-note/Aspose.Note-for-Java // Load the document into Aspose.Note. String inputFile = "Sample1.one"; Path inputPath = Utils.getPath(LoadDocIntoAsposeNoteUsingSaveformat.class, inputFile); String outputFile = "LoadDocIntoAsposeNoteUsingSaveformat.pdf"; Path outputPath = Utils.getPath(LoadDocIntoAsposeNoteUsingSaveformat.class, outputFile); Document oneFile = new Document(inputPath.toString()); // Save the document as PDF oneFile.save(outputPath.toString(), SaveFormat.Pdf);