Chrome PDF Rendering Engine
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.
Chrome PDF Rendering Engine
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
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"
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")
Recommended Improvements
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
'...
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 asChromePdfRenderer.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")
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.
Frequently Asked Questions
What is the Chrome PDF Rendering Engine by IronPDF?
The Chrome PDF Rendering Engine by IronPDF allows you to create high-grade PDF renders using the PDF-rendering engine of Chrome, providing accurate and efficient PDF creation.
How can I install IronPDF?
You can install IronPDF from the NuGet Package Manager using the command: `nuget install IronPdf`.
What improvements does the new API of IronPDF offer?
The new API offers more control over rendering options and supports features like setting CSS media type and HTTP login credentials for enhanced PDF rendering.
Does IronPDF support asynchronous operations?
Yes, IronPDF supports asynchronous operations, allowing you to use async variants of rendering methods for improved performance, particularly in web applications.
What are the benefits of using multithreading with IronPDF?
Multithreading with IronPDF allows for faster PDF rendering by utilizing multiple CPU cores, making it ideal for SAAS and high-load applications.
What rendering quality can I expect from IronPDF?
IronPDF provides high-quality rendering with options for Chrome Identical rendering or Enhanced Rendering, offering more accurate and developer-friendly results.
Does IronPDF support JavaScript and CSS3?
Yes, IronPDF offers full support for JavaScript, responsive layouts, and CSS3, ensuring compatibility with modern web standards.
What upcoming features are planned for IronPDF?
Upcoming features include ultra-slim deployments for cloud functions, mobile rendering support, IE and Firefox rendering options, and a new PDF document object model.
Is IronPDF tested for stability?
Yes, the release has passed 1156 green unit and integration tests, ensuring stability and reliability comparable to the main release.
How can I provide feedback or get support for IronPDF?
Feedback and support inquiries can be sent to support@ironsoftware.com, where the team welcomes ideas and offers assistance with implementations.