Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
After the template has been successfully generated, you can save it to disk in the preferred format. The saved results consist of several files:
To save a form, call Save
method of of the GenerationResult
object returned by GenerateTemplate
method. The method takes the following arguments:
Printable pages are saved as PNG images.
System::SharedPtr<Api::OmrEngine> engine = System::MakeObject<Api::OmrEngine>();
System::SharedPtr<Generation::GenerationResult> result = engine->GenerateTemplate(u"source.txt");
result.Save("", "OMR-Form");
This code generates the following files under forms sub-directory of the application’s working directory:
File | Description |
---|---|
OMR-Form.png |
An image of a machine-readable form that can be printed and distributed to respondents. |
OMR-Form.omr |
Recognition pattern file, that is used to map optical marks to bubbles for highly accurate recognition. |
Do not delete or modify recognition pattern (.OMR) file. It is required for recognition.
If you have accidentally deleted it, re-generate the form from the source code using exactly the same page settings.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.