Hello, I am migrating from the CDK 3.0 REST API to the new iink SDK REST API. I am attempting to obtain the primitive items of the converted diagram (lines ellipse, arc, etc) like in the documentation here https://developer.myscript.com/docs/interactive-ink/1.3/web/rest/diagram-example/ but I am only ever receiving stroke items back from Myscript.
here is a request body example of a circle I am sending to myscript
How do I configure the request to get the shape primitives?
Thank you,
Jacob
Best Answer
G
Gwenaelle @MyScript
said
over 4 years ago
Dear Jacob,
Thank you for contacting us.
If you want to get the converted items, you should set the "conversionState"parameter to "DIGITAL_EDIT", in your request body. So your REST request body would look like:
You should also choose your export format by setting the 'Accept' Header value to the format you want. For instance if you want svg, you would set 'image/svg+xml,application/json', or for JIIX format you would set 'application/vnd.myscript.jiix,application/json'.
Best regards,
Gwenaëlle
1 Comment
G
Gwenaelle @MyScript
said
over 4 years ago
Answer
Dear Jacob,
Thank you for contacting us.
If you want to get the converted items, you should set the "conversionState"parameter to "DIGITAL_EDIT", in your request body. So your REST request body would look like:
You should also choose your export format by setting the 'Accept' Header value to the format you want. For instance if you want svg, you would set 'image/svg+xml,application/json', or for JIIX format you would set 'application/vnd.myscript.jiix,application/json'.
J Elmstone
Hello, I am migrating from the CDK 3.0 REST API to the new iink SDK REST API. I am attempting to obtain the primitive items of the converted diagram (lines ellipse, arc, etc) like in the documentation here https://developer.myscript.com/docs/interactive-ink/1.3/web/rest/diagram-example/ but I am only ever receiving stroke items back from Myscript.
here is a request body example of a circle I am sending to myscript
How do I configure the request to get the shape primitives?
Thank you,
Jacob
Dear Jacob,
Thank you for contacting us.
If you want to get the converted items, you should set the "conversionState"parameter to "DIGITAL_EDIT", in your request body. So your REST request body would look like:
You should also choose your export format by setting the 'Accept' Header value to the format you want.
For instance if you want svg, you would set 'image/svg+xml,application/json', or for JIIX format you would set 'application/vnd.myscript.jiix,application/json'.
Best regards,
Gwenaëlle
Gwenaelle @MyScript
Dear Jacob,
Thank you for contacting us.
If you want to get the converted items, you should set the "conversionState"parameter to "DIGITAL_EDIT", in your request body. So your REST request body would look like:
You should also choose your export format by setting the 'Accept' Header value to the format you want.
For instance if you want svg, you would set 'image/svg+xml,application/json', or for JIIX format you would set 'application/vnd.myscript.jiix,application/json'.
Best regards,
Gwenaëlle
1 person likes this