-
1. Re: Prevent printing to PDF file
lrosenth Sep 2, 2013 6:17 AM (in response to AdobeHacker8)Just encrypt the file and specify that printing is not supported. No need to do anything special.
OR do you only want to prevent printing to a PDF (but allow printing to a physical printer)?
-
2. Re: Prevent printing to PDF file
AdobeHacker8 Sep 2, 2013 6:24 AM (in response to lrosenth)HI,
"OR do you only want to prevent printing to a PDF (but allow printing to a physical printer)?"
Yes, this is want I want to achieve!
-
3. Re: Prevent printing to PDF file
lrosenth Sep 2, 2013 6:35 AM (in response to AdobeHacker8)That's (for the most part) impossible, unfortunately.
Since there is no way to identify a given printer as a "PDF printer", the only thing you could do would be to get the name of the printer and compare it against some list that you've built. If it matches, then using the provided hooks for printing in the Acrobat SDK Plugin API, you could then disallow printing to that particular printer.
But given the NUMEROUS 3rd party PDF printers on the market – many of which are themselves OEM'd out and rebranded – I think you have a long road ahead :(.
Can I ask what you are REALLY trying to achieve? Is it some form of protection/right management? Perhaps there is a better way if we understood your underlying need.
-
4. Re: Prevent printing to PDF file
AdobeHacker8 Sep 2, 2013 6:57 AM (in response to lrosenth)I currently have a solution which encrypts PDF documents via a generated password, so the user must not remember it.
The user should be able to print this document, but not to print it as new PDF, which would be then unsecured.
So if I *may* try the solution to get the name of the selected PDF printer, or some check some other properties of the printer: Is there a hook in the Adobe SDK for that? As I wrote, AVDocDoPrint() is just called before a printer is selected, and after that it seems that there is no more callback into my plugin.
-
5. Re: Prevent printing to PDF file
Test Screen Name Sep 2, 2013 7:25 AM (in response to AdobeHacker8)If you allow printing, there really isn't any security. Consider, for example that the user could print it, then take the stack of pages and stick it in the scanner, to scan-to-PDF.
Or, what may be a normal network printer might have a feature allowing the queued file to be viewed as PDF...
The most you can do is cause inconvenience to the uninformed or unmotivated. Who are, at least, in the majority.
-
6. Re: Prevent printing to PDF file
AdobeHacker8 Sep 2, 2013 7:36 AM (in response to Test Screen Name)Yes, I know the problems with that. But my customer (the document encryptor) demands it in this way...
And I know a perfect solution is impossible.




