Browse our Products

Aspose.OMR for Java 24.12.0 - Release Notes

What was changed

KeySummaryCategory
OMRJAVA‑103Added support for embedding barcodes into machine-readable forms and enabled barcode recognition.New feature

Public API changes and backwards compatibility

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

Added public APIs:

The following public APIs have been added in this release:

barcode element

This element adds a barcode or QR code to the form based on the provided string. You can use it to link to your website or to uniquely identify a form (for example, generate personalized exam papers for each student).

Information from the barcode is decoded during recognition.

Aspose.OMR for Java can generate and recognize a wide variety of barcodes:

  • QR
  • Codabar
  • Code11
  • Code39
  • Code39FullASCII
  • Code93
  • Code128
  • GS1Code128
  • EAN8
  • EAN13
  • EAN14
  • SCC14
  • SSCC18
  • UPCA
  • UPCE
  • ISBN
  • ISSN
  • ISMN
  • Standard2of5
  • Interleaved2of5
  • Matrix2of5
  • ItalianPost25
  • IATA2of5
  • ITF14
  • ITF6
  • MSI
  • VIN
  • DeutschePostIdentcode
  • DeutschePostLeitcode
  • OPC
  • PZN
  • Code16K
  • Pharmacode
  • DataMatrix
  • Aztec
  • GS1Aztec
  • Pdf417
  • MacroPdf417
  • AustraliaPost
  • Postnet
  • Planet
  • OneCode
  • RM4SCC
  • Mailmark
  • DatabarOmniDirectional
  • DatabarTruncated
  • DatabarLimited
  • DatabarExpanded
  • SingaporePost
  • GS1DataMatrix
  • AustralianPosteParcel
  • SwissPostParcel
  • PatchCode
  • DatabarExpandedStacked
  • DatabarStacked
  • DatabarStackedOmniDirectional
  • MicroPdf417
  • GS1QR
  • MaxiCode
  • Code32
  • DataLogic2of5
  • DotCode
  • DutchKIX
  • UpcaGs1Code128Coupon
  • UpcaGs1DatabarCoupon
  • CodablockF
  • GS1CodablockF
  • GS1CompositeBar
  • HIBCCode39LIC
  • HIBCCode128LIC
  • HIBCAztecLIC
  • HIBCDataMatrixLIC
  • HIBCQRLIC
  • HIBCCode39PAS
  • HIBCCode128PAS
  • HIBCAztecPAS
  • HIBCDataMatrixPAS
  • HIBCQRPAS
  • GS1DotCode
  • HanXin
  • GS1HanXin
  • GS1MicroPdf417
  • MicroQR
  • RectMicroQR

The element is declared with ?barcode=[name] statement. This statement must be placed on a separate line. name property is used as an element’s identifier in recognition results and as a reminder of the element’s purpose in template source; for example, “Web site”. The name is not displayed on the form.

The barcode element can be customized by adding attributes to it. An attribute is written as [attribute_name]=[value]. Each attribute must be placed on a new line immediately after the opening ?barcode= statement or another attribute, and must begin with a tab character.

AttributeDefault valueDescriptionUsage example
valuemust be providedAny string encoded as a barcode, for example: value=https://products.aspose.com/omr/.
barcode_typeQRType of the barcode. Can take one of the following values: QR, Codabar, Code11, Code39, Code39FullASCII, Code93, Code128, GS1Code128, EAN8, EAN13, EAN14, SCC14, SSCC18, UPCA, UPCE, ISBN, ISSN, ISMN, Standard2of5, Interleaved2of5, Matrix2of5, ItalianPost25, IATA2of5, ITF14, ITF6, MSI, VIN, DeutschePostIdentcode, DeutschePostLeitcode, OPC, PZN, Code16K, Pharmacode, DataMatrix, Aztec, GS1Aztec, Pdf417, MacroPdf417, AustraliaPost, Postnet, Planet, OneCode, RM4SCC, Mailmark, DatabarOmniDirectional, DatabarTruncated, DatabarLimited, DatabarExpanded, SingaporePost, GS1DataMatrix, AustralianPosteParcel, SwissPostParcel, PatchCode, DatabarExpandedStacked, DatabarStacked, DatabarStackedOmniDirectional, MicroPdf417, GS1QR, MaxiCode, Code32, DataLogic2of5, DotCode, DutchKIX, UpcaGs1Code128Coupon, UpcaGs1DatabarCoupon, CodablockF, GS1CodablockF, GS1CompositeBar, HIBCCode39LIC, HIBCCode128LIC, HIBCAztecLIC, HIBCDataMatrixLIC, HIBCQRLIC, HIBCCode39PAS, HIBCCode128PAS, HIBCAztecPAS, HIBCDataMatrixPAS, HIBCQRPAS, GS1DotCode, HanXin, GS1HanXin, GS1MicroPdf417, MicroQR, RectMicroQR
qr_versionAutomaticQR Code version. Only applicable when barcode_type is QR.qr_version=40
codetextfalseAdd a string encoded as a barcode below the barcode image.codetext=true
aligncenterHorizontal alignment of the barcode image: left, center or right. This setting is ignored if the barcode is positioned by the absolute coordinates.align=right
heightAutomaticBarcode height, in pixels. The width is adjusted automatically.height=300
xn/aSet the absolute position of the barcode relative to the left edge of the page.
Overrides the value of align attribute.
x=300
yn/aSet the absolute position of the barcode relative to the top edge of the page.y=500

Updated public APIs:

No changes.

Removed public APIs:

No changes.

Usage examples

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

Add barcode to the form

?text=Name__________________________________              Date____________

#What is Aspose.OMR main function?
	() OCR () Capture human-marked data
	() There is no main function () Enhance images

?barcode=qr_version
	barcode_type=QR
	qr_version=Version10
	value=25
	height=300
	x=1700
	y=50
	codetext=false

Barcode