Motor de Renderizado Chrome EAP - Un cambio de juego para la generación de PDFs

Chrome PDF Rendering Engine

This article was translated from English: Does it need improvement?
Translated
View the article in English

Create high-grade PDF renders utilizing the PDF-rendering engine of Chrome!

Chromium is an open-source web browser project developed and maintained by Google. It serves as the foundation for several popular web browsers, including Google Chrome, Microsoft Edge, Opera, and many others.

Quickstart: Render HTML to PDF with IronPDF in Seconds

Get started with IronPDF's Chrome rendering engine to convert HTML to high-grade PDFs quickly. With just a few lines of code, leverage the power of Chromium's technology to produce pixel-perfect PDF documents. This guide demonstrates the simplicity of rendering HTML content using IronPDF, focusing on ease of use and rapid implementation for developers of all skill levels. IronPDF's robust features ensure seamless integration with your existing .NET projects, offering a reliable and high-performance solution for modern web and application development.

Nuget IconGet started making PDFs with NuGet now:

  1. Install IronPDF with NuGet Package Manager

    PM > Install-Package IronPdf

  2. Copy and run this code snippet.

    var pdf = IronPdf.ChromePdfRenderer.RenderHtmlAsPdf("<h1>Hello, World!</h1>");
  3. Deploy to test on your live environment

    Start using IronPDF in your project today with a free trial
    arrow pointer


High-Quality Improvements, Well Tested

High-Quality Rendering

The latest “Blink!” HTML rendering. Choose from Chrome Identical rendering or Enhanced Rendering (which we find more accurate and easy to code for than Chrome.)

20% Faster Renders

Provides effortless multithreading and Async, using as many CPU cores as you wish. For SAAS and high-load applications this may be 5-20 times faster, outperforming direct browser usage and web-drivers.

Full Support

Full (and we mean full) support for JavaScript, responsive layout and CSS3.
Azure as a first-class citizen. It just works.
Continued maintenance and improved full support for .NET 8, 7, 6, 5, Core, and Framework 4.6.2+.

Rigorously Tested

The release passed with 1156 green unit & integration tests (and no red ones). We believe this EAP to be as stable as our main release, and has our best minds actively improving it every day.

Section 508 Accessibility Compliance

Produces accessible PDFs using the PDF(UA) tagged PDF standard.

Ongoing Improvements

We would love to hear your feedback. Contact support@ironsoftware.com with ideas or if you need any help getting things running.


Implement in Your Project

1. Install IronPDF

First, you must install IronPDF into your project from the NuGet Package Manager named IronPdf.

# This is just a placeholder for installation. Use the NuGet CLI or Package Manager in your IDE.
nuget install IronPdf
# This is just a placeholder for installation. Use the NuGet CLI or Package Manager in your IDE.
nuget install IronPdf
SHELL

2. Try the new API

We haven’t broken the previous IronPDF C# and VB.NET API you are already using. It will remain! However, the old style is being superseded by a better one to give you more control.

// Example of setting up RenderingOptions and HttpLoginCredentials in the new API
var renderer = new IronPdf.ChromePdfRenderer();
renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.CssMediaType.Screen;
// Set HTTP credentials if needed
renderer.RenderingOptions.HttpLoginCredentials.Username = "yourUsername";
renderer.RenderingOptions.HttpLoginCredentials.Password = "yourPassword";
// Example of setting up RenderingOptions and HttpLoginCredentials in the new API
var renderer = new IronPdf.ChromePdfRenderer();
renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.CssMediaType.Screen;
// Set HTTP credentials if needed
renderer.RenderingOptions.HttpLoginCredentials.Username = "yourUsername";
renderer.RenderingOptions.HttpLoginCredentials.Password = "yourPassword";
' Example of setting up RenderingOptions and HttpLoginCredentials in the new API
Dim renderer = New IronPdf.ChromePdfRenderer()
renderer.RenderingOptions.CssMediaType = IronPdf.Rendering.CssMediaType.Screen
' Set HTTP credentials if needed
renderer.RenderingOptions.HttpLoginCredentials.Username = "yourUsername"
renderer.RenderingOptions.HttpLoginCredentials.Password = "yourPassword"
$vbLabelText   $csharpLabel

3. Apply Pixel-Perfect Chrome Rendering

This example will give you PDFs that are pixel-perfect to the latest Chrome desktop browser’s “print to PDF” functionality.

// Example for rendering a pixel-perfect PDF from HTML
var renderer = new IronPdf.ChromePdfRenderer();
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");
pdf.SaveAs("HelloWorld.pdf");
// Example for rendering a pixel-perfect PDF from HTML
var renderer = new IronPdf.ChromePdfRenderer();
var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>");
pdf.SaveAs("HelloWorld.pdf");
' Example for rendering a pixel-perfect PDF from HTML
Dim renderer = New IronPdf.ChromePdfRenderer()
Dim pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>")
pdf.SaveAs("HelloWorld.pdf")
$vbLabelText   $csharpLabel

We recommend using some Iron-specific improvements.

  • Use screen stylesheets to print PDFs. They are less fiddly to develop and more true to existing web assets.
  • Responsive layout support.
  • Create PDF Forms from your HTML form elements.
// Example showing recommended improvements such as responsive layout
...
// Example showing recommended improvements such as responsive layout
...
' Example showing recommended improvements such as responsive layout
'...
$vbLabelText   $csharpLabel

4. Multi-threading and Async Support

Multithreading and Async support for our Chrome rendering engine is in a different league compared to the previous build.

  • For enterprise-grade multithreading, use our ChromePdfRenderer in your existing threads and it will work. For web applications, this also takes zero setup.
  • For batch processing of HTML to PDF, we recommend using the built-in .NET Parallel.ForEach pattern.
  • We love async and have provided Async variants of all of our rendering methods such as ChromePdfRenderer.RenderHtmlAsPdfAsync.
// Example of using async rendering
var renderer = new IronPdf.ChromePdfRenderer();
var task = await renderer.RenderHtmlAsPdfAsync("<h1>Async PDF</h1>");
task.SaveAs("AsyncHelloWorld.pdf");
// Example of using async rendering
var renderer = new IronPdf.ChromePdfRenderer();
var task = await renderer.RenderHtmlAsPdfAsync("<h1>Async PDF</h1>");
task.SaveAs("AsyncHelloWorld.pdf");
' Example of using async rendering
Dim renderer = New IronPdf.ChromePdfRenderer()
Dim task = Await renderer.RenderHtmlAsPdfAsync("<h1>Async PDF</h1>")
task.SaveAs("AsyncHelloWorld.pdf")
$vbLabelText   $csharpLabel

5. What is next?

Features Coming Soon

  • Ultra-Slim deployments, useful for Azure functions and AWS Lambda. We aim to provide deployment options to produce the smallest possible disk footprint.
  • Mobile rendering support: support for iOS and Android app developers.
  • IE and Firefox rendering options.
  • Multi-server distributed rendering architectures for large enterprise users.
  • A re-imagined internal PDF document object model to support the widest range of PDF standards. We want to be able to handle reading and automatically fixing corrupted and badly encoded PDF documents elegantly.
  • "{YourIdeaHere}" Feature requests and bug reports our customers go to the top of the stack.

Please Contact Us for Further Queries with any suggestions or questions.

Preguntas Frecuentes

¿Cómo mejora el motor de renderizado PDF de Chrome la creación de PDFs?

El motor de renderizado PDF de Chrome utiliza la tecnología de código abierto de Chromium para crear renderizados de PDF de alta calidad que imitan estrechamente la función de imprimir a PDF nativa de Chrome, ofreciendo a los desarrolladores resultados perfectos.

¿Cuáles son las características clave del motor de renderizado PDF?

Las características clave incluyen renderizado de alta calidad con opciones de renderizado idóntico o mejorado de Chrome, velocidad mejorada a través de operaciones multihilo y asíncronas, y soporte completo para JavaScript y CSS3.

¿Cómo puedo integrar la biblioteca de PDF en mis proyectos .NET?

Puedes integrar IronPDF en tus proyectos .NET instalándolo a través del Administrador de Paquetes NuGet con el comando: nuget install IronPdf.

¿Qué ventajas ofrece la nueva API?

La nueva API ofrece un control mejorado sobre las opciones de renderizado, incluyendo la configuración de tipos de medios CSS y credenciales de inicio de sesión HTTP, mientras mantiene la compatibilidad con implementaciones anteriores.

¿Puedo realizar renderizado de PDF asíncrono?

Sí, IronPDF admite operaciones asíncronas, permitiéndote aplicar variantes asíncronas de métodos de renderizado, lo que puede mejorar el rendimiento, especialmente en aplicaciones web.

¿Por qué es beneficioso el multihilo para el renderizado de PDFs?

El multihilo permite a IronPDF utilizar múltiples núcleos de CPU para un renderizado más rápido, haciéndolo altamente eficiente para aplicaciones SAAS y de alta carga.

¿La biblioteca admite tecnologías web modernas?

IronPDF admite completamente tecnologías web modernas como JavaScript y CSS3, asegurando compatibilidad con diseños responsivos y estándares web contemporáneos.

¿Qué mejoras futuras están planificadas para la biblioteca de PDF?

Las mejoras planificadas incluyen despliegues ultraligeros para funciones en la nube, soporte de renderizado móvil, y opciones de renderizado adicionales como IE y Firefox, junto con un nuevo modelo de objeto de documentos PDF.

¿Qué tan confiable es la biblioteca de PDF?

La confiabilidad de la biblioteca está asegurada por la finalización exitosa de 1156 pruebas de unidad e integración, asegurando estabilidad y desempeño robusto.

¿Dónde puedo enviar comentarios o obtener soporte para la biblioteca de PDF?

Puedes enviar comentarios o solicitar soporte contactando a support@ironsoftware.com, donde el equipo está disponible para ayudar con cualquier consulta o sugerencia.

¿IronPDF es totalmente compatible con .NET 10 y qué significa eso para los desarrolladores?

Sí. IronPDF es compatible con todas las versiones modernas de .NET y ya es compatible con la próxima versión de .NET 10 (prevista para noviembre de 2025), lo que significa que los desarrolladores pueden esperar soporte y compatibilidad desde el primer día. Usar .NET 10 con IronPDF garantiza el acceso a las últimas mejoras de rendimiento, manteniendo al mismo tiempo la funcionalidad completa del motor de renderizado de Chrome.

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 16,154,058 | Versión: 2025.11 recién lanzado