from ironpdf import * import os # Establecer la ruta temporal del ámbito de aplicación my_temp_path = "C:/safe/location/" os.environ["TEMP"] = my_temp_path os.environ["TMP"] = my_temp_path # Establecer la ruta temporal de IronPDF Installation.TempFolderPath = os.path.join(my_temp_path, "IronPdfTemp") string = os.path.join(my_temp_path, "IronPdfTemp") # Su código de generación y edición de PDF aquí renderer = ChromePdfRenderer() doc = renderer.RenderHtmlAsPdf("<h1>Html with CSS and Images</h1>") doc.SaveAs("example.pdf")