We are pleased to announce the release of Aspose.Note for .NET 18.3. This release introduces an enhancement for images compression during conversion of OneNote documents to PDF. It also improves the overall API functionality by fixing several bugs reported with earlier version of the API. For a detailed note on what is new and fixed, please visit the release notes section of API documentation.
Support for Image Compression during Document Conversion
Conversion of OneNote documents to various different formats is one of the prominent features of Aspose.Note 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.
// The path to the documents directory. string dataDir = RunExamples.GetDataDir_LoadingAndSaving(); // Load the document into Aspose.Note. Document doc = new Document(dataDir + "Aspose.one"); // Initialize PdfSaveOptions object PdfSaveOptions opts = new PdfSaveOptions(); // Set page index opts.PageIndex = 2; // Set page count opts.PageCount = 3; //specify compression if required opts.ImageCompression = Saving.Pdf.PdfImageCompression.Jpeg; opts.JpegQuality = 90; dataDir = dataDir + "Document.SaveWithOptions_out.pdf"; doc.Save(dataDir, opts);
You can get started with Aspose.Note for .NET by making use of information available in the following.
API Documentation – Helps getting started with the API using code samples and examples
Forum Support – Post your inquiries to get help from our technical support team
Examples – Try the ready-to-use examples of the API by downloading from our GitHub repository
API Reference Guide – Provides information about all the namespaces, classes and properties of the API