Page 1 of 1

Are Mutiple instances of print2flash service possibile?

Posted: Tue Dec 31, 2013 7:51 am
by ahsan
Hi,
I am using WCF to build a service which will call print2flash service.
The whole scenario is described in this image.

Image

Please let me know that is this scenario is correct?

What actually i want to know from your side is whether multiple instances of print2flash service is created to handle concurrent requests of conversion?

Re: Are Mutiple instances of print2flash service possibile?

Posted: Wed Jan 01, 2014 9:57 am
by staff
Your scheme can be implemented except you cannot convert multiple documents at a time. Because of Windows printing architecture all documents are printed on a printer sequentially so only a single document at a time can be printed. As Print2Flash is a virtual printer, Windows sends print jobs to it one by one and hence Print2Flash also can process only a single document at a time. When you print documents via Automation API or using Enhanced Batch Processing, all conversion requests are serialized and documents are converted one by one. If you need a multi-threaded conversion, you have to install multiple Print2Flash copies on multiple physical or virtual machines.

Also, it is recommended to synchronize calls to ConvertFile method of the Server object using OS synchronization objects. If you use .NET, you may use System.Threading.Mutex class for such interprocess synchronization.