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

PDF Embed API: Prevent Print and Download

Community Beginner ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

Thank you for viewing this post.
We have disabled the download and print buttons to prevent the users.

 

{
  showDownloadPDF: false,
  showPrintPDF: false,
}

 

The problem is when the users `Ctrl+P` or `Cmd+P`,
the following prompt will appear. This gives the user a direct access to download the document.

 

Screen Shot 2023-09-27 at 4.02.54 PM.png

Before this appear, around a month or so, the "Print" keyboard shortcut calls for the browser print. On which we could somehow prevent the content to be shown.

Screen Shot 2023-09-27 at 4.05.00 PM.png

 

Any clue could help. 🙂

 

 

Views

2.5K

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 ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

Also, we tried accessing the iframe document, to override "keydown" listener, but the CSP policy prevents us.

 

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 ,
Sep 27, 2023 Sep 27, 2023

Copy link to clipboard

Copied

I was able to confirm this on Firefox and I reported it internally. 

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

Thank you!

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 ,
Sep 28, 2023 Sep 28, 2023

Copy link to clipboard

Copied

Hopefully can solve this issue asap.

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 ,
Oct 03, 2023 Oct 03, 2023

Copy link to clipboard

Copied

Good day Raymond, may we know if there is any progess? 🙂
I could confirm that it is still showing the "download" button up to now.
Thanks

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 ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

It was confirmed by engineering. That's all I got for now.

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 ,
Oct 04, 2023 Oct 04, 2023

Copy link to clipboard

Copied

Quedo al pendiente tambien del tema para resolve este inconveniente, nosotros lo detectamos en Chrome y Edge (Ctrl + p)

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 ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

Our current workaround is to make the document encrypted and disable printing permission.

marlo1500392_0-1696489836219.png

 

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 ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

Hi Marlo, please could you elaborate more on what you did, I have documented myself and I understand that a password can be added to the PDF with PDF Services API

https://developer.adobe.com/document-services/docs/overview/pdf-services-api/howtos/protect-pdf/

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 ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

You could use any PDF library for modifying the file permission. We use a PHP library for implementing this.
If you need more details, a personal message might be more appropriate.

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
New Here ,
Feb 04, 2024 Feb 04, 2024

Copy link to clipboard

Copied

Hi Marlo,

I have just DM'd you about this as we are running into a similar problem. I can't seem to see the message in my dashboard so please let me know if you've received the message, and if not could you please DM me with a quick insight into how you did this with PHP?

Thank you

Evan

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 ,
Oct 16, 2023 Oct 16, 2023

Copy link to clipboard

Copied

Any updates on this issue? I am experiencing the same problem on Firefox and hitting Cmd+P on Chorme brings up the print preview regardless of settings with the PDF showing and the option to save as PDF.

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 ,
Oct 17, 2023 Oct 17, 2023

Copy link to clipboard

Copied

Sorry no.

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 ,
Oct 17, 2023 Oct 17, 2023

Copy link to clipboard

Copied

He resuelto el tema hasta ahora protegiendo el archivo con "PDF Services API"

carlosadalid5E27_0-1697546426916.png

de esta manera al generar el PDF le quito el permiso de imprimir "Protect PDF"

https://developer.adobe.com/document-services/docs/overview/pdf-services-api/howtos/protect-pdf/

y al abrir el PDF desde Adobe Embed muestra el siguiente resultado

 

carlosadalid5E27_1-1697546615252.png

de la misma manera adobe deja algunos ejemplos de como hacerlo para este caso con JAVA

https://github.com/adobe/pdfservices-java-sdk-samples

 

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 ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

Hi @Raymond Camden , IIRC, this was working fine some time ago. Can you confirm if this was introduced in a recent release. Also, I could not find a way to use a prev. version of the SDK. Do you support it in any way ?

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 ,
Feb 16, 2024 Feb 16, 2024

Copy link to clipboard

Copied

Unfortunately we do not provide a way to use previous versions of the library. It is a known request.

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 ,
Mar 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

Hi @Raymond Camden, do you have an idea if this issue has been resolved?

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 ,
Mar 20, 2024 Mar 20, 2024

Copy link to clipboard

Copied

Nope, I've got no insight into that I'm afraid. 

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 ,
Mar 22, 2024 Mar 22, 2024

Copy link to clipboard

Copied

LATEST

Okay, thanks.
Can you suggest any Laravel/PHP package for PDF protection to prevent the Ctrl + P issue?

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