-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support pasting structures copied from ChemDraw OLE objects #3689
Labels
Comments
Stopped for a while since not clear how to implement it. Action points:
|
It appeared that browser, due to its security limitations (?) doesn't allow reading binary data with CDX from the clipboard. Alternative options are:
|
Won't do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
Chemical structures are often embedded into MS Office applications using ChemDraw OLE objects. In order to view and edit these structures in Ketcher users need to be able to copy a structure from ChemDraw OLE object to clipboard and paste it to Ketcher.
Solution
When copying to clipboard is applied to a ChemDraw OLE object, it stores underlying chemical structure in 'Native' clipboard item in CDX (binary) format. Structure/CDX content starts with a 8-byte header:
"VjCD0100" (56 6A 43 44 30 31 30 30)
When user tries to paste clipboard content into Ketcher, the following algorithm should be applied:
The text was updated successfully, but these errors were encountered: