When the message broadcast option is set in the Document Converter products, the printer driver broadcasts messages to all running applications each time one of the following events occur:
This is called right before the driver checks if the printer has been enabled. This is the best time for the developer to enable the printer driver.
This message fires when the document starts the actual printing. Specifically this is fired when the printing application calls the Windows API StartDoc. StartDocPre is called just before StartDoc, i.e. just before the driver starts generating the PDF file. StartDocPost is called just after printing starts.
These are called at the beginning and end of generating each page. Note that the page being generated is already active when these events are fired, so that the developer can draw elements on the page in the event handlers.
This event is fired when all printing is done. At this point the developer can access the generated file.
These messages can be intercepted by the calling application using the CDIntfEx object. The Flowchart on the next page clarifies the process.