Convert ONETOC2 to PNG via C#
Export Microsoft® ONETOC2 to PNG on .NET Framework, .NET Core.
How to Convert ONETOC2 to PNG Using C#
In order to convert ONETOC2 to PNG, we’ll use Aspose.Note for .NET API which is a feature-rich, powerful and easy to use document manipulation and conversion API for C# platform. Open NuGet package manager, search for Aspose.Note and install. You may also use the following command from the Package Manager Console.
Package Manager Console Command
PM> Install-Package Aspose.Note
Steps to Convert ONETOC2 to PNG via C#
Aspose.NOTE makes it easy for the developers to load & convert ONETOC2 files to PNG in just a few lines of code.
- Load ONETOC2 file with Document class
- Call the Document.Save method
- Pass output file path & SaveFormat.PNG as parameters
System Requirements
Aspose.NOTE for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.
- Microsoft Windows or a compatible OS with .NET Framework, .NET Core, and PHP, VBScript, Delphi, C++ via COM Interop.
- Development environment like Microsoft Visual Studio.
- Aspose.NOTE for .NET DLL referenced in your project.
A standalone OneNote Document Manipulation Library capable of reading, creating, editing and conversion of Microsoft OneNote files. The OneNote API also offers to load documents, render text and images, navigate through the document object model, extract text from any part of a file and more.
About Microsoft OneNote Document Manipulation
Those who have worked with Microsoft OneNote application may have noticed the presence of .onetoc2 files in the notebook folder. Microsoft OneNote creates binary .onetoc2 file as Table of Contents for keeping an index about the ordering of different note-taking sections in a notebook. A notebook is a collection of section files that are stored in the same directory. The .onetoc2 file uses a collection of properties to specify settings such as order of sections within the notebook and the color of the notebook.
About PNG file format
PNG, Portable Network Graphics, refers to a type of raster image file format that use loseless compression. This file format was created as a replacement of Graphics Interchange Format (GIF) and has no copyright limitations. However, PNG file format does not support animations. PNG file format supports loseless image compression that makes it popular among its users. With the passage of time, PNG has evolved as one of the mostly used image file format. Almost all Operating Systems have support for opening PNG files. For example, Microsoft Windows viewer has the capability to open PNG files as the OS has by default the support available as part of installation.
Free App to Convert ONETOC2 to PNG
Other Supported ONETOC2 Conversions by .NET
You can also convert ONETOC2 to many other file formats: