Dear Prithivi,
Thank you for contacting us.
Currently, I am not sure to understand what you are trying to do.
Indeed, you first mention the "addImage" function. Indeed, with the latter, you should have normally added the image to the editor? Indeed, it is similar to the paste function.
Then, when doing the "copy", are you simply trying to copy a "Drawing" part in your "Text Document", and this drawing part contains the image?
If this is the case, then your "Drawing" part cannot be copied, as only "a single block that is not a container" can be copied: https://developer.myscript.com/refguides/interactive-ink/android/1.4/com/myscript/iink/Editor.html#paste-float-float-
Best regards,
Olivier
Thanks for the update.
Image contentblock type is "Container' and the children type is "Drawing".
I can able to copy the image contentblock. {editor.copy(contentBlock);}
But, when I paste it throws an error: {editor.paste(x, y);}
java.lang.IllegalStateException: paste failed: content of the clipboard cannot be pasted
Reference Screenshot:
What is this error mean? this error throws from our myscript sdk.
paste failed: content of the clipboard cannot be pasted
Please guide us.
Dear Prithivi,
As said in my above answer, only a single block that is not a container can be copied. Then, you just mentionned you just your Image contentblock type is "Container'.
You then understand it is not possible to paste an image.
Best regards,
Olivier
prithivi raj
Hi,
I added the image in editor using this function from getEditor().addImage().
Content Node Type for Image is "Drawing"
My Requirement:
want to copy & paste the added image contentblock.
I can able to copy the image content block.
editor.copy(contentBlock); //contentBlock this is image contentBlock
But,
I cant able to paste the copied imaged contentblock.
editor.paste(x, y);
Issue Throws When paste:
java.lang.IllegalStateException: paste failed: content of the clipboard cannot be pasted
NOTE:
I can able to do the copy & paste for text only facing issue with image.
Best regards,
Prithivi.