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?
Is PrintPDFDocument synchronous?
Is PrintPDFDocument synchronous?
Darren Boon
Software Developer
Renaissance Learning Inc.
Software Developer
Renaissance Learning Inc.
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.
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
Amyuni PDF Converter tested for true PDF performance. View results - http://www.amyuni.com/benchmark
PrintPDFDocument Synchronous/Blocking?
Will the PrintPDFDocument be holding my file after the function call has returned? Here's what I intend to code:
PrintPDFDocument( aFile );
remove( aFile );
PrintPDFDocument( aFile );
remove( aFile );