Start a new topic
iink SDK on Device
Hi,
When I import a JIIX file it throws an below error.
java.lang.IllegalStateException: unsupported drawing changes
Code:
String jiixString = editor.export_(null, MimeType.JIIX);
editor.import_(MimeType.JIIX, jiixString, null);
This is my export jiix string:
{
"type": "Container",
"id": "MainBlock",
"bounding-box": {
"x": 9.52500057,
"y": 11.4300003,
"width": 184.150024,
"height": 190.5
},
"children": [ {
"type": "Drawing",
"id": "1",
"items": [ {
"timestamp": "2021-02-26 06:20:13.581000",
"X": [ 84.6894073, 84.9250488, 85.1606979, 85.1606979, 85.2184753, 85.6381836, 85.8800278, 86.1156769,
86.3513184, 86.9900436, 86.9900436, 87.9388199, 88.1806641, 89.0550308, 89.2038879, 89.2906723,
90.0038071, 90.4813004, 90.9587936, 91.1944351, 92.3044434, 92.5462875, 93.2594223, 93.4950714,
93.8919449, 94.1337891, 94.8469238, 95.0825729, 95.5600586, 95.8019028, 96.0375519, 96.2731934,
96.6700668, 96.9119186, 96.9119186 ],
"Y": [ 47.7078438, 47.7078438, 48.3444328, 48.5798836, 48.6664047, 49.2949562, 49.7745781, 50.4068069,
50.6466179, 51.5971413, 52.072403, 53.1842537, 53.6595154, 54.8542099, 55.0029411, 55.0896606,
55.9617004, 56.2015114, 57.3918457, 57.7886238, 58.7435074, 58.9789581, 59.4542198, 59.8509979,
60.0908089, 60.3306198, 60.5660706, 60.5660706, 61.0413322, 61.2811432, 61.2811432, 61.5209541,
61.5209541, 61.9962158, 61.9962158 ],
"F": [ 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625,
0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625,
0.50390625, 0.50390625, 0.50390625 ],
"T": [ 0, 272, 278, 282, 282, 287, 289, 297,
298, 306, 308, 316, 318, 325, 332, 337,
337, 345, 346, 349, 354, 358, 365, 366,
374, 374, 382, 384, 391, 394, 401, 404,
410, 428, 638 ],
"type": "stroke",
"id": "0000000001004500ff00"
} ],
"spans": [ {
"first-item": 0,
"last-item": 0,
"style": "color: #515358; -myscript-pen-width: 0.5"
} ]
"version": "2"
}
Pl, guide us what was wrong.
Thanks,
Prithivi.
Dear Prithivi,
currently, for a Drawing part, it is not allowed to import a JIIX file that would have add a single change.
Your use-case is therefore not possible.
Best regards,
Olivier
prithivi raj
Hi,
When I import a JIIX file it throws an below error.
java.lang.IllegalStateException: unsupported drawing changes
Code:
This is my export jiix string:
{
"type": "Container",
"id": "MainBlock",
"bounding-box": {
"x": 9.52500057,
"y": 11.4300003,
"width": 184.150024,
"height": 190.5
},
"children": [ {
"type": "Drawing",
"id": "1",
"bounding-box": {
"x": 9.52500057,
"y": 11.4300003,
"width": 184.150024,
"height": 190.5
},
"items": [ {
"timestamp": "2021-02-26 06:20:13.581000",
"X": [ 84.6894073, 84.9250488, 85.1606979, 85.1606979, 85.2184753, 85.6381836, 85.8800278, 86.1156769,
86.3513184, 86.9900436, 86.9900436, 87.9388199, 88.1806641, 89.0550308, 89.2038879, 89.2906723,
90.0038071, 90.4813004, 90.9587936, 91.1944351, 92.3044434, 92.5462875, 93.2594223, 93.4950714,
93.8919449, 94.1337891, 94.8469238, 95.0825729, 95.5600586, 95.8019028, 96.0375519, 96.2731934,
96.6700668, 96.9119186, 96.9119186 ],
"Y": [ 47.7078438, 47.7078438, 48.3444328, 48.5798836, 48.6664047, 49.2949562, 49.7745781, 50.4068069,
50.6466179, 51.5971413, 52.072403, 53.1842537, 53.6595154, 54.8542099, 55.0029411, 55.0896606,
55.9617004, 56.2015114, 57.3918457, 57.7886238, 58.7435074, 58.9789581, 59.4542198, 59.8509979,
60.0908089, 60.3306198, 60.5660706, 60.5660706, 61.0413322, 61.2811432, 61.2811432, 61.5209541,
61.5209541, 61.9962158, 61.9962158 ],
"F": [ 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625,
0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625,
0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625,
0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625, 0.50390625,
0.50390625, 0.50390625, 0.50390625 ],
"T": [ 0, 272, 278, 282, 282, 287, 289, 297,
298, 306, 308, 316, 318, 325, 332, 337,
337, 345, 346, 349, 354, 358, 365, 366,
374, 374, 382, 384, 391, 394, 401, 404,
410, 428, 638 ],
"type": "stroke",
"id": "0000000001004500ff00"
} ],
"spans": [ {
"first-item": 0,
"last-item": 0,
"style": "color: #515358; -myscript-pen-width: 0.5"
} ]
} ],
"version": "2"
}
Pl, guide us what was wrong.
Thanks,
Prithivi.