VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
let images = [
"0.jpg",
"1.jpg",
"2.jpg",
];
imageViewer.get_Images().openFiles(images);
After that we have deleted 0.jpg and save that changes using below code
let index = docViewer.getFocusedIndex();
docViewer.removePage(index);
docViewer.saveChanges();
The above code sent .Net core API request "MyVintasoftFileApi/SaveImageFile" to save the changes , below is the request
{
"fileId": "0.jpg",
"createNewFile": false,
"imageInfos": [
{
"fileInfo": {
"id": "1.jpg"
},
"pageIndex": 0
},
{
"fileInfo": {
"id": "2.jpg"
},
"pageIndex": 0
}
],
"sessionId": "SessionID"
}
But it in response we are getting error of "Single-page encoder cannot be used because collection contains more than one image" , below is the response
{
"fileId": "0.jpg",
"success": false,
"blocked": false,
"errorMessage": "Single-page encoder cannot be used because collection contains more than one image.\r\n",
"requestId": null
}
Can you please share how can we resolve this error