You can find more details at: Convert OneNote .one File to an Excel File in Java
Last active
August 15, 2022 08:30
-
-
Save aspose-com-gists/1b76fa8f24ce654157be43db0655d3b8 to your computer and use it in GitHub Desktop.
Convert OneNote to Excel XLS XLSX in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize an instance of ByteArrayOutputStream class. | |
final ByteArrayOutputStream stream = new ByteArrayOutputStream(); | |
// Load the OneNote .one file using Document class. | |
com.aspose.note.Document oneFile = new com.aspose.note.Document("Aspose.one"); | |
// Export the .one file as PDF | |
oneFile.save(stream, com.aspose.note.SaveFormat.Pdf); | |
// Load the file using Aspose.PDF Document class. | |
com.aspose.pdf.Document file = new com.aspose.pdf.Document(stream.toByteArray()); | |
// Convert the OneNote .one file as Excel file. | |
file.save("SaveOutput.xlsx" , com.aspose.pdf.SaveFormat.Excel); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment