Aspose.Note for Java is a feature-rich OneNote API that enables the Java applications to dynamically interact with OneNote documents without requiring any other software. API empowers the developers to create, read, manipulate and export the contents of the Microsoft OneNote file format. The API also allows managing attachments, text, hyperlinks, tables, tags and text styles.
The OneNote API is easy to use, saves time, and developers can create robust solutions with less code. On top of it, it is a standalone component that does not require any other tools or software to work with OneNote files.

Advanced Java OneNote Library Features

Convert OneNote document to PDF while preserving image hyperlinks

Save the file to stream

Retrieve attached files as well as extract images

Default font for Note documents

API Features in Documentation

You can see the full list of Aspose.Note features in our documentation. Using Aspose.Note offers a wide arrange of features for creating, reading, manipulating and saving project files:

  • Rendering text and images from OneNote file to raster images (BMP, PNG, JPEG, GIF, TIFF).
  • Rendering text and images from OneNote file to Portable Document Format (PDF).
  • Load a OneNote document, edit it and then save it in OneNote format.
  • Insert an image into the OneNote Document.
  • Parsing and exporting of different formats of numbered lists.
  • Navigation through the OneNote Document Object Model.
  • Text extraction - extract text from any part of a OneNote file.
  • Read text formatting and layout information (sizes and positions) through the object model.
  • Replace and insert text and other elements and export to supported rendering formats.
  • Compliant with FIPS 186-4 standard and FIPS compliant version of Bouncy Castle usage in API

Render OneNote Files to PDF & Image Formats

Using API, developers can open ONE files and export them to PDF and popular image formats including BMP, JPEG, PNG, GIF and TIFF, with high fidelity. Developers can customize by configuring PageSetup aspects for the resultant fixed-layout formats including page numbers to be rendered, resultant page size or setting the image compression for the embedded images.

Save file in various formats - Java



    // load the file for conversion

    Document onedct= new Document(dir + "template.one");

    // Convert ONE to PDF, JPEG and TIFF

    onedct.save(dir + "output.pdf", SaveFormat.Pdf);

    onedct.save(dir + "output.jpg", SaveFormat.Jpeg);

    onedct.save(dir + "output.tiff", SaveFormat.Tiff);


You can try online NOTE Converter.

You can also convert One, Onetoc2, files into many other file formats including few listed below:

Accessing Data from Files

Aspose.Note for Java allows loading OneNote documents in your Java Desktop and Web applications thus allowing you to access the data for different objects like pages, text, images, tables, attachments, tags and so on.

Print OneNote Documents with Ease

API supports printing OneNote files using different options. One can print with a specific job name or selecting a range of pages for printing or print using the default settings.

Print file to default printer - Java


     
    String dataDir = Utils.getSharedDataDir(AlternativeText.class) + "load/";
		
    Document document = new Document(dataDir + "Aspose.one");

    document.print();





  

Support and Learning Resources

  
  

Aspose.NOTE offers individual NOTE processing APIs for other popular development environments as listed below: