New Forum | Previous | Next | (P-PDF) Developers
Topic: Limiting Print Jobs from Acrobat Reader
Conf: (P-PDF) Developers, Msg: 54527
Date: 5/29/2002 05:06 PM
I suppose this is really a 2-pronged question. Here's the main idea:
I need to prevent users of Acrobat Reader from accidentally printing a full document, i.e. hitting the print button, or using File->Print and just hitting enter, etc. The document may be thousands of pages, which is not a good thing to print to a shared printer needed by multiple users.
I've looked at 3 different approaches:
1) Use the notifications in the SDK to detect an outgoing print job, then give the opportunity to kill it if it's too big. Got the notification... how do I kill the print job? Adobe Dev. Supp. says "it's not in the SDK", so I would need to call an external application to kill an outgoing print job.
2) Alter the Print dialog so that "Print All" is not the default option.
3) Replace the Print dialog with my own version. This is really not the most attractive option, but whatever is necessary...
So here's the challenge... (trumpets blare)
How do I call an external function via Acrobat SDK?
How do I kill a print job in Windows with a program?
How would I do that same task in Unix?
How (if) could I affect the Print dialog's default options?
How (if) could I create my own Print dialog?
I think 2 and 3 may already exist somewhere, and possibly there is sample code, if anyone knows where. I have been unable to find any coding help in the Acrobat SDK, and the useful samples and and programming examples are minimal at best. At this point, I would go in any direction suggested to complete this task.
Thanks for any help (I know this is a big post), and I look forward to sorting through re-statements, detail requests, and code samples if anyone can assist me.