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". Explore Pixel-Perfect HTML to PDF Guide with IronPDF View on GitHub Code https://github.com/iron-software/IronPdf.Examples/tree/main/examples/pdf-generation-settings Download ZIP Related Tutorial Related How-To Guide Class Documentation Get Language Packs Download IronPDF DLL Report an Issue on this page Ready to Get Started? Nuget Downloads 16,425,128 | Version: 2025.11 just released Free NuGet Download Total downloads: 16,425,128 View Licenses
All your questions are answered to make sure you have all the information you need. (No commitment whatsoever.)