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.
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.
Any clue could help. 🙂
Copy link to clipboard
Copied
Also, we tried accessing the iframe document, to override "keydown" listener, but the CSP policy prevents us.
Copy link to clipboard
Copied
I was able to confirm this on Firefox and I reported it internally.
Copy link to clipboard
Copied
Thank you!
Copy link to clipboard
Copied
Hopefully can solve this issue asap.
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
Copy link to clipboard
Copied
It was confirmed by engineering. That's all I got for now.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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/
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.
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
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.
Copy link to clipboard
Copied
Sorry no.
Copy link to clipboard
Copied
He resuelto el tema hasta ahora protegiendo el archivo con "PDF Services API"
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
de la misma manera adobe deja algunos ejemplos de como hacerlo para este caso con JAVA
https://github.com/adobe/pdfservices-java-sdk-samples
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 ?
Copy link to clipboard
Copied
Unfortunately we do not provide a way to use previous versions of the library. It is a known request.
Copy link to clipboard
Copied
Hi @Raymond Camden, do you have an idea if this issue has been resolved?
Copy link to clipboard
Copied
Nope, I've got no insight into that I'm afraid.
Copy link to clipboard
Copied
Okay, thanks.
Can you suggest any Laravel/PHP package for PDF protection to prevent the Ctrl + P issue?
Copy link to clipboard
Copied
looks like @Pablo37385995lrkv found a workaround on this issue https://community.adobe.com/t5/acrobat-services-api-discussions/disabled-printing-but-ctrl-p-still-p...
I also empty the iframe source in that callback:
Find more inspiration, events, and resources on the new Adobe Community
Explore Now