New Forum | Previous | Next | (P-PDF) Developers
Topic: Manual Acrodist print job - how to tell when done?
Conf: (P-PDF) Developers, Msg: 54646
Date: 5/29/2002 05:07 PM
Acrodist is default printer and is set up not to prompt. User invokes an agent that prints, then attaches resulting file. But file attach line runs before file is complete.
Agent code is able to yield to an exe run from the os. So - an exe that checks to see when acrodist is finished printing the file would be PERFECT. But how to get a handle on an event you didn't start with "shell" or any other acrodist command? SDK examples don't seem to address this.
Here's the code I need (assume user has just printed a document with acrodist as the default printer):
Sub CheckIfPdfPrintJobComplete (*pseudocode*)
Get handle on acrodist print job just started by user (or get handle on "cancel" window)
While distiller is still processing print job:
sleep for a second