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.
At a Glance
An overview of the capabilities of API.
- Rich Text
- Render Complete File
- Render Specific Part of File
- Extract Text & Images
- Access Positioning Information
- Access Formatting Information
- Add & Modify Text
- Insert Image
- Add & Modify Graphical Elements
Aspose.Note for Java supports the JDK 1.7 and above.
- JSP/JSF Application
- Desktop Application
Supported File Formats
API supported file formats including OneNote native and raster image formats are listed below.
- Microsoft OneNote: ONE
- Fixed Layout: PDF
- Web: NOTE
- Images: GIF, JPEG, PNG, BMP, TIFF
Advanced Java OneNote Library Features
Convert OneNote document to PDF while preserving image hyperlinks
Convert OneNote file to image
Save the file to stream
Retrieve attached files as well as extract images
Extract text from the table of document
Get Outlook tasks details from OneNote document
Replace text from pages
Provision to set locales
Extract images from OneNote files
Add option to compress pictures while converting to PDF
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();