Steps to Convert ONETOC2 to PNG

Aspose.Note for Java is an API to process, view or convert Microsoft OneNote files to PDF, JPG, PNG, BMP and TIFF image formats. It is a stand alone, user-friendly and fast application API and does not need any additional software. It supports .one and .onenote extensions with high-performance conversion.


Get Started with Java OneNote API

Aspose.NOTE for .NET is supported on all major operating systems. Just make sure that you have the following prerequisites.

  1. You can easily use Aspose.Note for Java directly from a Aspose Maven Repository based project and include libraries in your pom.xml.
  2. Alternatively, you can get a ZIP file from downloads.

Steps to Convert ONETOC2 to PNG using Java

Aspose.NOTE makes it easy for the developers to load & convert ONE files to BMP in just a few lines of code.

  1. Load ONE file with Document class
  2. Create ImageSaveOptions object with SaveFormat.PNG as parameter.
  3. Call the Document.Save method



ONETOC2 What is ONETOC2 File Format

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.

PNG What is 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.

Other Supported ONETOC2 Conversions using Java

You can also convert ONETOC2 to many other file formats:

ONETOC2 TO BMP (Bitmap Image File)
ONETOC2 TO GIF (Graphic Image File)
ONETOC2 TO JPEG (JPEG Image)
ONETOC2 TO PDF (Portable Document Format)
ONETOC2 TO PNG (Portable Network Graphics)
ONETOC2 TO TIFF (Tagged Image File Format)