can we re-use the same ConversionHandler object for multiple conversions?
For example if i do this in the beginning:
ConversionHandler conversionHandler = new ConversionHandler(config);
can i re-use the conversionHandler object for converting 5 different documents?
Thank you for your inquiry .
Could you please specify version of the GropDocs.Conversion for Java library, because we have released the new generation library at the previous week and it differs from the previous version.
We will wait for your details.
we are using java version 1.3
Thank you for your details.
The 1.3 version of the Conversion library supports multithreading, but we recommend you to use our new generation of the library (it also supports multithreading), because the legacy versions of the library doesn't supported anymore.
If you will have more questions please feel free to contact us.
we are now using the new 3.0 jar, but the questions still remain.
Can you please let us know what is ok and what is considered as best practice?
1. Just one ConversionConfig object that can be initialised just once and passed to multiple threads
2. Just one ConversionHandler object that can be initialised just once and passed to multiple threads
3. Just one ImageSaveOptions object that can be initialised just once and passed to multiple threads
or do we have to create a new ConversionHandler for each and every conversion, even if it is in the same thread?
Thanks for giving a try to GroupDocs.Conversion for Java 3.0.0.
We shall investigate your scenario and get back to you with the outcomes. Please stay tuned.
The best practice would be to initialise ConversionConfig, ConversionHandler and ImageSaveOptions objects just one time. Until and unless you want to make some changes in the configuration or save option (different configurations/save options for different kind of conversions).