Back to back print jobs causing problems

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
svanniman
Posts: 4
Joined: Wed Oct 25 2006

Back to back print jobs causing problems

Post by svanniman »

We're using the print driver to capture and convert output to a file (ie. test.pdf). Using default file name option. Works great, unless a user submits two back to back jobs quickly enough that the first file is not gone when the second starts. I'd like to use the append with date/time or unique id, but not sure how to get the file name so my app processes the correct file.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

This seems like a multithreading scenario, I advise you to use the locking mechanism of CDIntf to make sure that a new print job will start after the previous one has started, so no conflict in the printer configuration occurs.

You can add id or date to the generated filename using the FileNameOPtions.

Fore more information please check 'FileNameOptions' and 'lock()' in the developers' manual 'Common Driver Interface 250.pdf' that you received with the product.
Post Reply