Browse our Products

Aspose.OMR for .NET 21.10 Release Notes

All Changes

KeySummaryCategory
#OMRNET-234Implement the ability to recognize scanned PDFs templatesNew Feature
#OMRNET-238Not recognize the barcode correctly on release 21.09Bug
#OMRNET-229Not convert to pdf correctly on Letter and Legal paper sizesBug

Public API and Backwards Incompatible Changes

Added APIs:

TypeTitleDescription
PropertyAspose.OMR.Generation.BubbleSize.ExtrasmallResponsible for bubble size 40

Updated APIs:

No Changes

Removed APIs:

No Changes

Usage Example for Extrasmall bubbleSize

using System;
using System.IO;
using Aspose.OMR;
using Aspose.OMR.Api;
using Aspose.OMR.Generation;
using Aspose.OMR.Model;

namespace ProgramOMR
{
    static void Main(string[] args)
    {
        // Create license
        SetLicense();   

        // Generate method
        Generate();
    }

    private static void SetLicense()
    {
        // Set license
        License lic = new License();
        lic.SetLicense(@"D:\ProgramOMR\Properties\Aspose.Total.lic");
    }

    public static void Generate()
    {
        // Get file for generate template
        string path = @"D:\ProgramOMR\Generation\Grid.txt";

        OmrEngine engine = new OmrEngine();

        string[] imagePaths = new string[2];
        imagePaths[0] = @"D:\ProgramOMR\Generation\logo1.jpg";
        imagePaths[1] = @"D:\ProgramOMR\Generation\logo2.png";

        GlobalPageSettings settings = new GlobalPageSettings
        {
            BubbleSize = BubbleSize.Extrasmall
        };

        GenerationResult result = engine.GenerateTemplate(path, settings);
        result.Save(@"D:\ProgramOMR\Results", "letter");
    }
}