Return to Snippet

Revision: 66075
at March 11, 2014 20:54 by johansonkatherine


Initial Code
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET


// Load the document into Aspose.Note.
    Document oneFile = new Document(@"FullFileName.one");
    // Save the document as GIF.
    oneFile.Save("FullFileName.gif", SaveFormat.Gif);
	
    OR

    // Load the document into Aspose.Note.
    Document oneFile = new Document(@"FullFileName.one");
    // Initialize ImageSaveOptions object 
    ImageSaveOptions opts = new ImageSaveOptions(SaveFormat.Png);
    // Set page index
    opts.PageIndex = 1;
    // Save the document as PNG.
    oneFile.Save(@"FullFileName.png", opts);

Initial URL
http://www.aspose.com/blogs/aspose-blogs/imran.rafique/archive/2014/03/04/read-convert-extract-and-manipulate-the-microsoft-onenote-files-using-aspose.note-for-.net-1.0.0.html

Initial Description
The Aspose.Note for .NET API allows developers to open files & manipulate elements of OneNote books & export them to PNG, GIF, JPEG, BMP and PDF formats. The following code sample shows developers how to save OneNote File as an image in C#/.NET

Initial Title
C#/.NET  Code Samples to Save Microsoft OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file

Initial Tags
object, image, file, search, replace, text, images, files, Net, aspnet, api, convert, c#

Initial Language
C#