Browse our Products

Aspose.OMR for C++ 23.7.0 - Release Notes

What was changed

KeySummaryCategory
OMRCPP‑47Added the ability to specify the page size of a generated OMR form.New feature

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been added in this release:

Api::PaperSize enum

The new layout setting that allows you to configure physical page dimensions for the generated OMR form. This setting takes one of the following values:

EnumNumeric valueStandardPaper size (mm)Paper size (inches)Dimensions (pixels)
Api::PaperSize::A40A4210 × 2978.3 × 11.72,480 × 3,508
Api::PaperSize::Legal2Legal215.9 × 355.68.5 × 142,551 × 4,205
Api::PaperSize::Letter1Letter215.9 × 279.48.5 × 112,551 × 3,295
Api::PaperSize::p85194n/a215.9 × 482.68.5 × 192551 × 5702
Api::PaperSize::p85215n/a215.9 × 533.48.5 × 212551 × 6302
Api::PaperSize::Tabloid3Tabloid279 × 43211 × 173295 × 5102

Updated public APIs:

No changes.

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

System::SharedPtr<Api::OmrEngine> engine = System::MakeObject<Api::OmrEngine>();
System::SharedPtr<Api::GlobalPageSettings> settings = System::MakeObject<Api::GlobalPageSettings>();
settings->setPaperSize(Api::PaperSize::Letter);
System::SharedPtr<Generation::GenerationResult> result = engine->GenerateTemplate(markupPath, nullptr, settings);