from ironpdf import * import concurrent.futures import uuid # Instanciar renderizador renderer = ChromePdfRenderer() htmlStrings = ["<h1>Html#1</h1>", "<h1>Html#2</h1>", "<h1>Html#3</h1>"] with concurrent.futures.ThreadPoolExecutor() as executor: futures = [] for html in htmlStrings: futures.append(executor.submit(renderer.RenderHtmlAsPdf, html)) # hacer algo con cada pdfDocument for future in concurrent.futures.as_completed(futures): pdf = future.result() pdf.SaveAs(f"{uuid.uuid4()}.pdf") # hacer algo con cada pdf