Is PrintPDFDocument synchronous?

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
daboon
Posts: 2
Joined: Tue Dec 11 2007

Is PrintPDFDocument synchronous?

Post by daboon »

I am creating an application that downloads PDF files and prints them and I need to remove the files after they are printed. So, I need to know when I can delete them.

Of course this depends on whether the PrintPDFDocument function is synchronous or if there is a finished event I need to catch instead.

The documentation does not say either way. Does anyone know for sure?
Darren Boon
Software Developer
Renaissance Learning Inc.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

You can catch the events fired by the driver and when you catch the EndDoc() event printing would have ended.

There is information in the Developers' documents "Common Driver Interface 300.pdf" about this issue.

If you have problems handling events please send an email to support@amyuni.com and our Engineers will send you a sample application for this.

Best Regards.
Custom Brand the Amyuni PDF Printer Driver http://www.amyuni.com/en/developer/branding/index.html

Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
DeanG
Posts: 1
Joined: Mon Jan 07 2008

PrintPDFDocument Synchronous/Blocking?

Post by DeanG »

Will the PrintPDFDocument be holding my file after the function call has returned? Here's what I intend to code:

PrintPDFDocument( aFile );
remove( aFile );
Post Reply