Expand my Community achievements bar.

copy to clipboard button

Avatar

Level 2

is it possible to create a button that copies a text field to the clipboard? I have a hidden field that compiles the values from multiple inputs and I want to be able to click a button to copy this information to the clipboard... Baring this the other option will to be to show the field, highlight it, and manually copy the data to the clipboard. I would think this to be a simple script but I have been unable to find it.

1 Reply

Avatar

Former Community Member

I believe security since Acrobat 7.x has shut the door on the clipboard...but I could be wrong.

In the past there have been HTML solutions using an object tag to 'host' a PDF and Designer registering a message handler to communicate with the HTML DOM. From the HTML JavaScript it would then be possible to execCommand("Copy") to put data on the clipboard.

Steve