Browse our Products

Aspose.OMR for Java 23.1.0 - Release Notes

What was changed

This is the major release of Aspose.OMR for Java which delivers significant new features, enhancements to existing features, performance improvements, and fixes. The list below contains the most important features that are supported in this release:

KeySummaryCategory
OMRJAVA-66Added the ability to specify the page size of a generated OMR form.New feature
OMRJAVA-67Added the ability to specify color of all bubbles on a page.New feature

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OMR for Java 23.1.0 that may affect the code of existing applications.

Added public APIs:

The following public APIs have been added in this release:

GlobalPageSettings

GlobalPageSettings class allows you to customize the design and layout of the generated OMR form. Starting with Aspose.OMR for Java 23.1.0, you can configure the following parameters:

GlobalPageSettings.PaperSize

The new setting GlobalPageSettings.PaperSize allows you to configure page size for the generated OMR form. This setting takes one of the following values:

ValueStandardPaper size (mm)Paper size (inches)Dimensions (pixels)
PaperSize.LetterLetter215.9 × 279.48.5 × 112,551 × 3,295
PaperSize.A4A4210 × 2978.3 × 11.72,480 × 3,508
PaperSize.LegalLegal215.9 × 355.68.5 × 142,551 × 4,205
PaperSize.TabloidTabloid279 × 43211 × 173295 × 5102
PaperSize.p8519215.9 × 482.68.5 × 192551 × 5702
PaperSize.p8521215.9 × 533.48.5 × 212551 × 6302
GlobalPageSettings.BubbleColor

The new setting GlobalPageSettings.BubbleColor allows you to specify the color of all bubbles in the generated OMR form. This setting takes one of the following values:

ColorValue
 DrawingColor.undefined
DrawingColor.AliceBlue
DrawingColor.AntiqueWhite
DrawingColor.Aqua
DrawingColor.Aquamarine
DrawingColor.Azure
DrawingColor.Beige
DrawingColor.Bisque
DrawingColor.Black
DrawingColor.BlanchedAlmond
DrawingColor.Blue
DrawingColor.BlueViolet
DrawingColor.Brown
DrawingColor.BurlyWood
DrawingColor.CadetBlue
DrawingColor.Chartreuse
DrawingColor.Chocolate
DrawingColor.Coral
DrawingColor.CornflowerBlue
DrawingColor.Cornsilk
DrawingColor.Crimson
DrawingColor.Cyan
DrawingColor.DarkBlue
DrawingColor.DarkCyan
DrawingColor.DarkGoldenrod
DrawingColor.DarkGray
DrawingColor.DarkGreen
DrawingColor.DarkKhaki
DrawingColor.DarkMagenta
DrawingColor.DarkOliveGreen
DrawingColor.DarkOrange
DrawingColor.DarkOrchid
DrawingColor.DarkRed
DrawingColor.DarkSalmon
DrawingColor.DarkSeaGreen
DrawingColor.DarkSlateBlue
DrawingColor.DarkSlateGray
DrawingColor.DarkTurquoise
DrawingColor.DarkViolet
DrawingColor.DeepPink
DrawingColor.DeepSkyBlue
DrawingColor.DimGray
DrawingColor.DodgerBlue
DrawingColor.Firebrick
DrawingColor.FloralWhite
DrawingColor.ForestGreen
DrawingColor.Fuchsia
DrawingColor.Gainsboro
DrawingColor.GhostWhite
DrawingColor.Gold
DrawingColor.Goldenrod
DrawingColor.Gray
DrawingColor.Green
DrawingColor.GreenYellow
DrawingColor.Honeydew
DrawingColor.HotPink
DrawingColor.IndianRed
DrawingColor.Indigo
DrawingColor.Ivory
DrawingColor.Khaki
DrawingColor.Lavender
DrawingColor.LavenderBlush
DrawingColor.LawnGreen
DrawingColor.LemonChiffon
DrawingColor.LightBlue
DrawingColor.LightCoral
DrawingColor.LightCyan
DrawingColor.LightGoldenrodYellow
DrawingColor.LightGray
DrawingColor.LightGreen
DrawingColor.LightPink
DrawingColor.LightSalmon
DrawingColor.LightSeaGreen
DrawingColor.LightSkyBlue
DrawingColor.LightSlateGray
DrawingColor.LightSteelBlue
DrawingColor.LightYellow
DrawingColor.Lime
DrawingColor.LimeGreen
DrawingColor.Linen
DrawingColor.Magenta
DrawingColor.Maroon
DrawingColor.MediumAquamarine
DrawingColor.MediumBlue
DrawingColor.MediumOrchid
DrawingColor.MediumPurple
DrawingColor.MediumSeaGreen
DrawingColor.MediumSlateBlue
DrawingColor.MediumSpringGreen
DrawingColor.MediumTurquoise
DrawingColor.MediumVioletRed
DrawingColor.MidnightBlue
DrawingColor.MintCream
DrawingColor.MistyRose
DrawingColor.Moccasin
DrawingColor.NavajoWhite
DrawingColor.Navy
DrawingColor.OldLace
DrawingColor.Olive
DrawingColor.OliveDrab
DrawingColor.Orange
DrawingColor.OrangeRed
DrawingColor.Orchid
DrawingColor.PaleGoldenrod
DrawingColor.PaleGreen
DrawingColor.PaleTurquoise
DrawingColor.PaleVioletRed
DrawingColor.PapayaWhip
DrawingColor.PeachPuff
DrawingColor.Peru
DrawingColor.Pink
DrawingColor.Plum
DrawingColor.PowderBlue
DrawingColor.Purple
DrawingColor.Red
DrawingColor.RosyBrown
DrawingColor.RoyalBlue
DrawingColor.SaddleBrown
DrawingColor.Salmon
DrawingColor.SandyBrown
DrawingColor.SeaGreen
DrawingColor.SeaShell
DrawingColor.Sienna
DrawingColor.Silver
DrawingColor.SkyBlue
DrawingColor.SlateBlue
DrawingColor.SlateGray
DrawingColor.Snow
DrawingColor.SpringGreen
DrawingColor.SteelBlue
DrawingColor.Tan
DrawingColor.Teal
DrawingColor.Thistle
DrawingColor.Tomato
DrawingColor.Turquoise
DrawingColor.Violet
DrawingColor.Wheat
DrawingColor.White
DrawingColor.WhiteSmoke
DrawingColor.Yellow
DrawingColor.YellowGreen

Updated public APIs:

The following public APIs have been updated in this release:

generateTemplate() method

This method now accepts a new settings parameter, which customizes the design and layout of the generated OMR form. Available overloads:

MethodDescription
generateTemplate(String markupPath, GlobalPageSettings settings)Creates a printable OMR form from source code with a custom page size and bubble color.
generateTemplate(String markupPath, ImageCollection collection, GlobalPageSettings settings)Creates a printable OMR form with images from source code. Allows for specifying page size and bubble color.

Removed public APIs:

No changes.

Usage examples

See the examples below to learn more about the changes introduced in this release:

Configure page size of the OMR form

OmrEngine engine = new OmrEngine();
GlobalPageSettings pageSettings = new GlobalPageSettings();
pageSettings.PaperSize = PaperSize.A4;
GenerationResult res = engine.generateTemplate("source.txt", pageSettings);
res.Save("target", "omr_form");

Set the bubble color

OmrEngine engine = new OmrEngine();
GlobalPageSettings pageSettings = new GlobalPageSettings();
pageSettings.BubbleColor = DrawingColor.Red;
GenerationResult res = engine.generateTemplate("source.txt", pageSettings);
res.Save("target", "omr_form");

Custom bubble color