Multi Threaded Generation
IronPDF has extensive multithreading support using the 2021 Chrome Rendering API.
Approaches to threading in .NET include:
using IronPdf; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; // Instantiate Renderer var renderer = new ChromePdfRenderer(); var htmlStrings = new List<string>() { "<h1>Html#1</h1>", "<h1>Html#2</h1>", "<h1>Html#3</h1>" }; Task<PdfDocument[]> task = Task.WhenAll(htmlStrings.Select(html => renderer.RenderHtmlAsPdfAsync(html))); List<PdfDocument> pdfList = task.Result.ToList(); // Do something with the pdfDocuments
Imports IronPdf Imports System.Collections.Generic Imports System.Linq Imports System.Threading.Tasks ' Instantiate Renderer Private renderer = New ChromePdfRenderer() Private htmlStrings = New List(Of String)() From {"<h1>Html#1</h1>", "<h1>Html#2</h1>", "<h1>Html#3</h1>"} Private task As Task(Of PdfDocument()) = System.Threading.Tasks.Task.WhenAll(htmlStrings.Select(Function(html) renderer.RenderHtmlAsPdfAsync(html))) Private pdfList As List(Of PdfDocument) = task.Result.ToList() ' Do something with the pdfDocuments
IronPDF has extensive multithreading support using the 2021 Chrome Rendering API.
Approaches to threading in .NET include:
30-day Trial Key instantly.
15-day Trial Key instantly.
Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com
Install-Package IronPdf
Have a question? Get in touch with our development team.
No credit card required
Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com
No credit card required
Get started for FREE
No credit card required
Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
No credit card or account creation required
Your trial key should be in the email.
If it is not, please contact
support@ironsoftware.com
Get started for FREE
No credit card required
Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
Licenses from $749. Have a question? Get in touch.
Book a 30-minute, personal demo.
No contract, no card details, no commitments.
10 .NET API products for your office documents