0

I'm trying to create data to paste into InDesign and I'm using the following code to copy my data to the clipboard:

Clipboard.generalClipboard.setData("dms", xml.toXMLString());

But when I paste it into InDesign, it shows the code rather than the formatted content. I don't know if the ClipboardFormat is correct and I don't know if my data is correct (it is the whole IDMS XML document). Does anyone have a working example or tell me what's wrong?

Here is what I get when I check the formats property of the Clipboard.generalClipboard.formats array. It also contains the format value:

air:file list:null
air:url:null
1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231

1 Answers1

0

It is copying a file or file reference to the clipboard.

1.21 gigawatts
  • 16,517
  • 32
  • 123
  • 231