Learn how to Export OneNote to Word in C#
Created
May 6, 2025 12:37
-
-
Save aspose-com-gists/754c76f2a8aa9981d5ed995ba46f3bc9 to your computer and use it in GitHub Desktop.
Export OneNote to Word in C#
This file contains hidden or 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
// Step 1: Load the OneNote file using Aspose.Note | |
Aspose.Note.Document oneNoteDoc = new Aspose.Note.Document("input.one"); | |
// Step 2: Save the OneNote file as a PDF | |
oneNoteDoc.Save("output.pdf", Aspose.Note.SaveFormat.Pdf); | |
// Step 3: Load the generated PDF using Aspose.Words | |
Aspose.Words.Document pdfDoc = new Aspose.Words.Document("output.pdf"); | |
// Step 4: Save the PDF as a DOCX Word document | |
pdfDoc.Save("output.docx", Aspose.Words.SaveFormat.Docx); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment