I trying to crate a custom answer sheet (in a txt file) and use the curl statements to generate the OMR sheet. I am able to send the POST request and I am returned a massive response. How would I generate/get the printable answer sheet from this?
Here is my curl statement:
curl --location --request POST ‘https://api.aspose.cloud/v3.0/omr/customSheet.txt/runOmrTask?actionName=GenerateTemplate’
–header ‘Accept: text/plain’
–header ‘Content-Type: application/json’
–header ‘Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6Ikwb…wHk3nz_NuKnsif10kpCI3rOsfnno8cP1A’
–data ‘{
“MarkupFile”: “ewoJImVsZW1lbnRfdH…kJCQl9CgkJCV0KCQl9CgldCn0K”,
“Images”: {},
“Settings”: {
“PaperSize”: “Legal”,
“BubbleColor”: “black”
}
}’
If I look at the response I get from this I notice that I get base64url for a .png file and .omr file (decoding both result in nothing) but if I scroll further down in the response I get the following:
“WARNING:omr_form_generator: Working on string 0: ?custom_answer_sheet=Example\n String is not recognized as element and will be ignored”