Aspose Introduces New .NET API for Working with Microsoft OneNote Files

sherazam

Well-known member
Joined
Mar 10, 2010
Messages
277
Programming Experience
3-5
What is new in this release?

Aspose development team is very excited to announce about our new API known as Aspose.Note for .NET. It enables developers to work with the Microsoft Office OneNote (.one) file formats . Aspose.Note is a class library for working with Microsoft OneNote files. It allows developers to work with ONE (2010/ 2013) files in ASP.NET web applications, web services and Windows applications. The Aspose.Note API brings with it some comprehensive features. In the first version, we have included features like converting .one files to different image formats, exporting to PDF format, reading and extracting text from .one file, getting page information, getting image information, extracting images, and searching and replacing text. The following samples give you an idea how to get started with Aspose.Note for .NET. We hope you?ll enjoy these API features that save time and efforts. The API is quite simple and developers can use it in application easily. Aspose.Note for .NET will allow you to convert, extract, read or update OneNote files without installing Microsoft OneNote on the server. Please visit the blog page to view sample codes for different important features. The main features and bug fixes added in this release are listed below

- Rendering the text and images from OneNote? file to raster images(PDF, PNG, JPEG, GIF, BMP, TIFF)
- Rendering the text and images from OneNote? file to Adobe ? Portable Document Format (PDF).
- Navigation through the OneNote? Document Object Model.
- Text Extraction - extract text from any part of OneNote? file.
- Read text formatting and layout information (sizes and positions) through the object model.
- Replace and insert text or other elements and export in the supported rendering formats.
- It supports OneNote? 2010, OneNote? 2010 SP1, OneNote? 2013

Here are some sample codes for converting OneNote Files to different other formats

Save OneNote (.one) file as an image (.PNG, .BMP, .JPEG, .GIF) file

The Aspose.Note API allows developers to save one notebook pages to image files so making a thumbnail is easy. Below is the code for saving a notebook as an image:

// 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);

Please see the following topic for further help: Converting OneNote to Image.

Code Samples for Export OneNote (.one) file pages to PDF

If you have a Microsoft OneNote file that you want to share with others, but do not want them to be able to change the format, you can save the file as a PDF. The code below shows how to save all or specific pages from a OneNote file as a PDF file:

// Load the document into Aspose.Note.
Document oneFile = new Document(@"FullFileName.one");
// Save the document as PDF
oneFile.Save(@"FullFileName.pdf", new PdfSaveOptions());

OR

// Load the document into Aspose.Note.
Document oneFile = new Document(@"FullFileName.one");
// Initialize PdfSaveOptions object
PdfSaveOptions opts = new PdfSaveOptions();
// Set page index
opts.PageIndex = 2;
// Set page index
opts.PageCount = 3;
// Save the document as PDF
oneFile.Save(@"FullFileName.pdf", opts);

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Note for .NET documentation that may guide you briefly how to use Aspose.Note for performing different tasks like the followings.

- Aspose.Note for .NET Overview
- Converting OneNote Document to PDF

Overview: Aspose.Note for .NET

Aspose.Note for .NET is a set of .NET components that enables developers to work with Microsoft Office OneNote files in C#, VB.NET, ASP.NET web applications, web services & Windows applications. It allows developers to open files & manipulate elements of OneNote books, from text, images & properties, to more complex elements, & then export to PNG, GIF, JPEG, BMP or PDF formats. It is a pure .NET alternative to the MS OneNote Object Model & supports OneNote 2010, OneNote? 2010 SP1 & 2013 files.

More about Aspose.Note for .NET

- Homepage of Aspose.Email for .NET
- Download Aspose.Note for .NET
- Online documentation of Aspose.Note for .NET
- Demos of Aspose.Note for .NET

Contact Information

Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
Aspose - Your File Format Experts
sales@aspose.com
Phone: 888.277.6734
Fax: 866.810.9465
 

Latest posts

Back
Top