Are Mutiple instances of print2flash service possibile?

Using OLE Automation API
Post Reply
ahsan
Posts: 34
Joined: Thu Oct 31, 2013 8:41 am

Are Mutiple instances of print2flash service possibile?

Post by ahsan » Tue Dec 31, 2013 7:51 am

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?

staff
Posts: 281
Joined: Sat Dec 15, 2007 4:48 pm

Re: Are Mutiple instances of print2flash service possibile?

Post by staff » Wed Jan 01, 2014 9:57 am

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.

Post Reply