Image Quality Control with Aspose.Note for Java 18.3

Aspose-Note-for-JavaWe are pleased to announce the release of Aspose.Note for Java 18.3. This month’s release introduces the capability to compress output image quality while rendering document to different formats. It also fixes several issues that further improve overall API functionality. For a complete list of what is new and fixed, please visit the release notes section of API documentation.

Image Compression during Document Conversion

Conversion of OneNote documents to various formats is one of the prominent features of Aspose.Note for Java API. This release of API introduces capability to control the compression ratio of images during conversion to PDF. It lets you select the image compression type and quality using the SaveOptions class of the API. Image quality can be set from 0 to 100 using the JpegQuality property of SaveOptions as shown in the following code sample.

// Load the document into Aspose.Note.
Document doc = new Document(dataDir + "");

// Initialize PdfSaveOptions object
PdfSaveOptions opts = new PdfSaveOptions();

// Set page index

// Set page count

//Specify compression if required
dataDir = dataDir + "Document.SaveWithOptions_out.pdf";, opts);

API Resources

  • Documentation – Visit our documentation section for getting started with the API in no time
  • API Reference Guide – Gives detailed information about all the namespaces, classes and methods of the API
  • Forum Support – Post your queries on Aspose.Note forum to get assistance from our technical support team
  • GitHub Examples – Try the ready-to-use examples of the API by downloading from our GitHub repository