Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aspose-com-gists/754c76f2a8aa9981d5ed995ba46f3bc9 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/754c76f2a8aa9981d5ed995ba46f3bc9 to your computer and use it in GitHub Desktop.
Export OneNote to Word in C#
// 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