PDF Converter - PDF File contains other users content

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
smckay
Posts: 3
Joined: Thu Sep 17 2009

PDF Converter - PDF File contains other users content

Post by smckay »

I am using PDF Converter 4.0.1.1 and noticed that if two people ( or the same person ) issues a print job at the same time the content of one of print job can end up in the other users ( or second print job for the same person ) PDF. Is there any programming that can be done to prevent this from happening or is this a problem with the version of the product that we have?
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Re: PDF Converter - PDF File contains other users content

Post by Jose »

Hi,

The situation you have described may occur when the Amyuni PDF Converter is used in multi-threaded environments. However, the PDF Converter exposes API calls that the developer can use to resolve this situation.

The Lock\Unlock functions can be used in multi-threading situations to avoid conflicts between multiple applications or multiple threads requesting simultaneous access the Converter products.

The CDIntf library uses the registry to interact with the printer drivers. When the Lock function is used, the output file name and options are set using the SetDocFileProps function and not from the SetDefaultFileName and SetFileNameOptions functions which manipulate registry entries that are common to all users.

The Lock function works by locking the process based on the document name used in the print spooler.

The Unlock function is used after printing has ended to make sure another printout can start. The call to Unlock is needed only in the case where an error occurs; the printer will otherwise call Unlock internally as soon as printing starts to allow another printout to occur in parallel. The Timeout value represents the Timeout in milliseconds after which the function returns.

I have included below a link to our online documentation which explains this in greater detail.

https://www.amyuni.com/WebHelp/Amyuni_D ... s/Lock.htm

Thanks
Get PDF Suite, the expert .NET developer toolkit for PDF conversion, creation and editing - www.amyuni.com/pdfsuite
Post Reply