Text markup

[ ]

Aspose.OMR text markup is a lightweight markup language specifically tailored for describing content and layout of Aspose.OMR forms. It is content-focused, with minimal number of tags or formatting instructions.

The downsides of text markup are that it doesn’t support syntax highlighting and is somewhat harder to read when working with nested layouts.

Template sources are stored as plain-text files that can be opened with any general-purpose text editor or code editor (such as Notepad or Visual Studio Code). The following encodings are supported:

  • UTF-8, with or without BOM (byte order mark). Recommended encoding that can accommodate forms in any combination of natural languages, including Chinese, Arabic, Hindi, Hebrew, and more.
  • ANSI - for forms that use Western European characters only.

You can use Windows (CRLF), Unix (LF) and Mac OS 9 (CR) line endings.


Text markup includes a wide range of elements that allow you to create OMR forms of any complexity - from a simple ballot to high school exam papers and finance application checklists.

  • Layout
    Arrange other elements; define the appearance and design of OMR forms.
  • Questionnaires
    Build OMR-ready surveys, ballots, checklists, and similar forms.
  • Answer sheets
    Populate a form with a grid of bubbles representing answers to an exam, test, or assessment.
  • Barcodes and QR codes
    Add barcodes and QR-codes to personalize or uniquely identify a form.
  • Write-ins
    Provide a blank field in which the respondent can hand write some text or draw a picture.


Check out code examples to see how different elements can be used and combined with each other.