Steps to Convert ONETOC2 to JPEG

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 JPEG 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.JPEG 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.

JPEG What is JPEG File Format

A JPEG is a type of image format that is saved using the method of lossy compression. The output image, as result of compression, is a trade-off between storage size and image quality. Users can adjust the compression level to achieve the desired quality level while at the same time reduce the storage size. Image quality is negligibly affected if 10:1 compression is applied to the image. The higher the compression value, the higher the degradation in image quality. JPEG image file format was standardized by the Joint Photographic Experts Group and, hence, the name JPEG. The format has been the choice of storing and transmitting photographic images on the web. Almost all Operating systems now have viewers that support visualization of JPEG images, which are often stored with JPG extension as well. Even the web browsers support visualization of JPEG images.

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)