Fetch printable form
Contents
[
Hide
]
When form’s source code is submitted for generation, it is queued to ensure a stable response even under high load. To obtain the result, send a GET request to the https://api.aspose.cloud/v5.0/omr/GenerateTemplate/GetGenerateTemplate
Aspose.OMR Cloud REST API endpoint. To authorize the request, pass the access token in Authorization header (Bearer authentication).
Provide the unique identifier of the generation task in id
parameter:
curl --location 'https://api.aspose.cloud/v5.0/omr/GenerateTemplate/GetGenerateTemplate?id=7ec63522-e35f-4f9d-8b06-0da1876220b6' \
--header 'Accept: text/plain' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...TMpXEfk3BOozpOiEhetRKfDNc8LEPQHBqg'
Generated form
The form is returned in JSON format in the response body.
{
"id": "7ec63522-e35f-4f9d-8b06-0da1876220b6",
"responseStatusCode": "Ok",
"results": [
{
"type": "Png",
"data": "iVBORw0KGgoAAAANSUhEUgAACbAAAA20CAYAAAAuvPkNAAAACXBIWXMAAA7DAAAOwwHHb6hkAAB...N7rR2lwI/PWEAAAAAElFTkSuQmCC"
},
{
"type": "Omr",
"data": "ewoJIlZlcnNpb24iOiAiMS4wIiwKCSJOYW1lIjogIk15VGVtcGxhdGUiLAoJIlBhZ2VzIjogWwo...VyYXRlZCI6IHRydWUKfQ=="
}
],
"error": null
}
Generated form is stored in the Aspose cloud and can be obtained by the task ID within 24 hours after the source code was sent for generation.
Property | Type | Description |
---|---|---|
id |
string | Unique identifier of the generation task. Equals to the value of the id request property. |
responseStatusCode |
string | Generation response status. |
results |
array | This list includes at least 2 entries:
|
error/messages |
array | Generation error messages, if any. Even if the form is generated, you can still get notifications and warnings about non-fatal generation errors. |
Printable form pages and a recognition pattern are returned as Base64 encoded strings. You must decode them to save to a file.