PDF Converter - PDF File contains other users content
PDF Converter - PDF File contains other users content
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?
Re: PDF Converter - PDF File contains other users content
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
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