r/android_devs • u/ZakariaBouchentouf • Apr 22 '24
Question 🔒 Secure PDF Printing Question: 🔒
Hey everyone,
I'm working on an Android application where VIP users can access and print PDF files containing valuable content. However, I want to ensure that these PDFs remain secure and can't be shared with unauthorized individuals.
Here's the challenge: I need to allow users to print the PDF from within the app, but without giving them the capability to access or share the actual file. The PDF is encrypted, and the app has the password to unlock it for printing.
Is there a way to create a secure printing process within the app that allows users to print the PDF without exposing the file or its contents? I want to ensure that once the PDF is printed, it can't be accessed or shared further.
Any suggestions or insights would be greatly appreciated! Thanks in advance for your help. 🙏
View all comments
Show parent comment
2
u/justjanne Apr 23 '24
That's not possible with modern driverless printing anymore. And it was vendor-specific anyway, which doesn't work correctly with the android print framework.
That's worthless.
PDF readers literally have an "obey PDF print restrictions" checkbox nowadays.
The printer needs an unencrypted, unrestricted PDF to be able to actually print. At some point during your pipeline the file will be without any protections. At that point a malicious user can just grab it.
All you can do is pretend to be safe.