• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

is there any event for prevent user from right click or copy text using adobe embed api

Community Beginner ,
Jun 30, 2022 Jun 30, 2022

Copy link to clipboard

Copied

I'm stuck in a situation i want to prevent user from copying text. Can i prevent user from right click and copy text using ctrl + c. I know there must be a solutoin to that but i didn;t find anything yet. 

 

i was using this : 
document.addEventListener('keyup', event => console.log(event.code == "c"));
document.addEventListener('contextmenu', event => event.preventDefault());

but it didn't work as i guess pdf is rendered inside the iframe .

Views

881

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 30, 2022 Jun 30, 2022

Copy link to clipboard

Copied

Can I ask why? 🙂 Keep in mind a user will be able to download the PDF and copy the text that way. 

 

I can say that Embed will respect those restrictions. I was able to set a PDF such that copying was not allowed. When viewed in Embed, while I could select text, hitting CTRL+C did NOT copy the text to clipboard. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 30, 2022 Jun 30, 2022

Copy link to clipboard

Copied

yes this is what i want to do. i want user to select the text , highlight it but should not be able to copy. either using ctrl+c or by right click and copy . how can i stop user from doing this , 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 01, 2022 Jul 01, 2022

Copy link to clipboard

Copied

Use Acrobat - it lets you edit permissions on PDFs - not the free version though.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 01, 2022 Jul 01, 2022

Copy link to clipboard

Copied

is it not possible with adobe embed api

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 02, 2022 Jul 02, 2022

Copy link to clipboard

Copied

You set the permissions in the PDF, using an app like Acrobat, after it's created and before you serve it, and then the online service respects it.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 03, 2022 Jul 03, 2022

Copy link to clipboard

Copied

LATEST

As Test Screen Name said. If you think about it, if it was done in Embed, someone could use devtools to simply remove that block. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources