XPSToPDF Conversion - Version 18.2460.0.44

We are using the following code to convert an xps file to a pdf

Dim oConverter As New Syncfusion.XPS.XPSToPdfConverter()
 Dim oDoc As New Syncfusion.Pdf.PdfDocument(Syncfusion.Pdf.PdfConformanceLevel.None)
 oDoc = oConverter.Convert(sXpsPath)

If we add 

Syncfusion.Pdf.PdfDocument.EnableThreadSafe = True

at the top of the method will this process then be ok to use in a multi threaded environment?

Many thanks

1 Reply 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team May 17, 2021 11:11 AM UTC

Hi Philip, 
 
Thank you for contacting Syncfusion products. 
  
Yes, we can process this conversion in multi-threading environment using EnableThreadSafe property of PdfDocument class. Please find the below API to enable the thread safe,   
 
PdfDocument.EnableThreadSafe = true;  
 
Note: If we enable this property, the font cache is not maintained in conversion. 
 
Please refer the below links for more information, 
 
Please let us know if you need any further assistance with this. 
  
Regards, 
Gowthamraj K 


Marked as answer
Loader.
Up arrow icon