Skip to main content
Participant
October 5, 2022
Question

Click text to copy to clipboard

  • October 5, 2022
  • 1 reply
  • 2923 views

I want someone to be able to click certain text in a pdf and have it copy to their clipboard. Is this possible?

 

I have my email address in the document, and I want to make it easy for someone to click it and copy it so they can paste it in the email program of their choice to email me. 

 

Any way to make a section of text copy to their clipboard? 

 

This topic has been closed for replies.

1 reply

James Gifford—NitroPress
Legend
October 5, 2022

A live email link will open a new, blank email when clicked. There's no need to run it through the clipboard.

 

If anything, it's hard to make documents and PDFs not make web and email addresses live when you create them. It's assumed you want them converted to a live link. 🙂

 

Participant
October 5, 2022

Yeah so that's my issue. I really don't want it to open a blank email. I just want to copy the text.
If I can't make the text copyable I would rather have it do nothing than automatically open an email.

James Gifford—NitroPress
Legend
October 5, 2022

Then leave it as plain text, and the user can cut and paste it any way they like.

 

I'm not clear on the difference between having it automatically copied to the clipboard "so they can paste it in the email client of their choice"... and having a click automatically paste it in a blank email that is almost certainly generated by the email client of their choice.

 

There may be a 'copy to clipboard' command I am not aware of, though. It can be done in HTML using Javascript. Maybe one of the PDF wizards here knows.