Browse our Products
Aspose.OMR for C++ 23.7.0 - Release Notes
This article contains a summary of recent changes, enhancements and bug fixes in Aspose.OMR for C++ 23.7.0 (July 2023) release.
What was changed
Key | Summary | Category |
---|---|---|
OMRCPP‑47 | Added 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:
Enum | Numeric value | Standard | Paper size (mm) | Paper size (inches) | Dimensions (pixels) |
---|---|---|---|---|---|
Api::PaperSize::A4 | 0 | A4 | 210 × 297 | 8.3 × 11.7 | 2,480 × 3,508 |
Api::PaperSize::Legal | 2 | Legal | 215.9 × 355.6 | 8.5 × 14 | 2,551 × 4,205 |
Api::PaperSize::Letter | 1 | Letter | 215.9 × 279.4 | 8.5 × 11 | 2,551 × 3,295 |
Api::PaperSize::p8519 | 4 | n/a | 215.9 × 482.6 | 8.5 × 19 | 2551 × 5702 |
Api::PaperSize::p8521 | 5 | n/a | 215.9 × 533.4 | 8.5 × 21 | 2551 × 6302 |
Api::PaperSize::Tabloid | 3 | Tabloid | 279 × 432 | 11 × 17 | 3295 × 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);