Is byte[] Convert(string inputHtml, Uri basePath = null, ConversionOptions conversionO thread safe

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Converter for .NET (v1)  /  Is byte[] Convert(string inputHtml, Uri basePath = null, ConversionOptions conversionO thread safe

DynamicPDF Converter for .NET (v1) Forum

I am using DynamicPDF.HTMLConverter.NETStandard20, Version=1.6.0.43372

I have C# application where main thread will spin a thread for each print job
for each job
  Thread t = new Thread(new ParameterizedThreadStart(PrintingTimeoutThreadProc));
  PrintingParams p = new PrintingParams(job.printerName, job.htmlBody)
  .Start(p);

    private void PrintingTimeoutThreadProc(object data)
    {
      PrintingParams printingParams = data as PrintingParams;
     ...
      byte[] fileData = Converter.Convert(data .htmlBody, null, conversionOptions);
     ...
// send byte array to printer
  }

My question is the Converter.Convert(data .htmlBody, null, conversionOptions) call thread safe?
Posted by a ceTe Software moderator
Hi,

The latest version of DynamicPDF Converter supports Asynchronous conversions, and it is thread safe. You can refer to the documentation on Asynchronous conversions here.

Thanks,
ceTe Software Support

All times are US Eastern Standard time. The time now is 2:00 AM.