Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aspose-com-kb/790fa5345e7dc2fade199c7043976b84 to your computer and use it in GitHub Desktop.
Save aspose-com-kb/790fa5345e7dc2fade199c7043976b84 to your computer and use it in GitHub Desktop.
How to Convert PDF to OneNote using C#. For more details: https://kb.aspose.com/note/net/how-to-convert-pdf-to-onenote-using-csharp/
class Program{
static void Main(string[] args) // PDF to OneNote C#
{
// Set PDF license
new Aspose.Note.License().SetLicense("Aspose.Total.lic");
// Create a Document class object
var doc = new Aspose.Note.Document();
// Import multiple PDF files
doc.Import("Sample1.pdf");
doc.Import("Sample2.pdf");
doc.Import("Sample3.pdf");
// Save the resultant .ONE file
doc.Save("MergedPdfs.one");
System.Console.WriteLine("PDF to OneNote conversion completed successfully");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment