HTML Rendering Settings
IronPDF aims to be as flexible as possible for the developer.
In this C# PDF Generation Tutorial Example, we show the balance between providing an API that automates internal functionality and providing one that gives you control.
IronPDF supports many customizations for generated PDF files, including page sizing, page margins, header/footer content, content scaling, CSS rulesets, and JavaScript execution.
We want developers to be able to control how Chrome turns a web page into a PDF. The ChromePdfRenderer
Class Overview makes this possible.
Examples of settings available on the ChromePdfRenderer
class include settings for margins, headers, footers, paper size, and form creation.
- The code example above demonstrates how to create a PDF document from a web page using the IronPDF library.
- This involves setting up a renderer with specific options like paper size, margins, header, and footer.
- The
ChromePdfRenderer
class is used to render the URL to a PDF. - The resulting PDF document is then saved to a file named "output.pdf".
Discover how to achieve pixel-perfect PDF rendering from HTML with IronPDF's detailed guide.