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

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

Forum member · Apr 12, 2023
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?

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

Support · Apr 13, 2023
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