// The path to the documents directory. String dataDir = Utils.getSharedDataDir(SaveOneNoteDocToStream.class) + "load/"; // Load the document into Aspose.Note. Document oneFile = new Document(dataDir + "Aspose.one"); dataDir = dataDir + "SaveToBmpImageUsingImageSaveOptions_out.bmp"; // Save the document. oneFile.save(dataDir, new ImageSaveOptions(SaveFormat.Bmp));