Test in production without watermarks.
Works wherever you need it to.
Get 30 days of fully functional product.
Have it up and running in minutes.
Full access to our support engineering team during your product trial
With over 100 features, IronPDF has you covered on all your PDF needs.
Convert HTML content into PDF format, maintaining the structure, style, and formatting of your web pages.
Learn how to:create pixel perfect PDFs from HTML// Pixel Perfect HTML Formatting Settings
using IronPdf.Rendering;
IronPdf.ChromePdfRenderer renderer = new IronPdf.ChromePdfRenderer();
// Generate PDF by rendering the Html resource taken from the URL
renderer.RenderingOptions.CssMediaType = PdfCssMediaType.Print; // or Screen
var pdf = renderer.RenderUrlAsPdf("https://ironpdf.com/");
pdf.SaveAs("picture-perfect-html.pdf");
Support for CSS ensures that your PDFs are styled and formatted according to your web-based designs, preserving the look and feel of your content.
Learn how to:use responsive CSSusing IronPdf;
using IronPdf.Rendering;
ChromePdfRenderer renderer = new ChromePdfRenderer();
// Choose screen or print CSS media
renderer.RenderingOptions.CssMediaType = PdfCssMediaType.Print;
// Render HTML with CSS to PDF
PdfDocument pdf = renderer.RenderHtmlAsPdf("<p style=\"color:red; font-family:sans
Enable JavaScript to render dynamic content within your PDFs, ensuring interactive elements are preserved.
Learn how to:render PDFs with JavaScriptusing IronPdf;
const string htmlWithJavaScript = @"
<h1>This is HTML</h1>
<script>
document.write('<h1>This is JavaScript</h1>');
window.ironpdf.notifyRender();
</script>";
// Instantiate Renderer
var renderer = new ChromePdfRenderer();
// Enable JavaScript in our RenderingOptions
renderer.RenderingOptions.EnableJavaScript = true;
renderer.RenderingOptions.WaitFor.JavaScript();
var pdfJavaScript = renderer.RenderHtmlAsPdf(htmlWithJavaScript);
// Export to a file or Stream
pdfJavaScript.SaveAs("javascript-in-html.pdf");
Include images in your PDFs to enhance visual appeal and provide additional context or information.
Learn how to:add images to PDFsusing IronPdf;
ChromePdfRenderer renderer = new ChromePdfRenderer();
string html = @"<img src='https://ironsoftware.com/img/products/ironpdf-logo-text-dotnet.svg'>";
// Render HTML to PDF
PdfDocument pdf = renderer.RenderHtmlAsPdf(html);
// Export PDF
pdf.SaveAs("embedImage.pdf");
Support for various font types and styles allows you to maintain the original appearance of your content when converting to PDF.
Learn how to:support webfontsusing IronPdf;
// HTML contains webfont
var html = @"<link href=\"https://fonts.googleapis.com/css?family=Lobster\" rel=\"stylesheet\">
<p style=\"font-family: 'Lobster', serif; font-size:30px;\" > Hello Google Fonts</p>";
ChromePdfRenderer renderer = new ChromePdfRenderer();
// Wait for font to load
renderer.RenderingOptions.WaitFor.AllFontsLoaded(2000);
// Render HTML to PDF
PdfDocument pdf = renderer.RenderHtmlAsPdf(html);
// Export the PDF
pdf.SaveAs("font-test.pdf");
Ensure your PDFs support UTF-8 encoding, enabling the display of special characters and multilingual content.
Learn how to:support UTF-8using IronPdf;
// UTF-8 string
const string html_utf_8 = @"<p>今日は مرحبا ไทย</p>";
var renderer = new ChromePdfRenderer();
renderer.RenderingOptions.InputEncoding = System.Text.Encoding.UTF8;
var pdf = renderer.RenderHtmlAsPdf(html_utf_8);
pdf.SaveAs("Unicode.pdf");
Manage URL-based assets and encoding to accurately display web-based content, images, and links within your PDFs.
Learn how to:manage URL-basedusing IronPdf;
// Instantiate ChromePdfRenderer
ChromePdfRenderer renderer = new ChromePdfRenderer();
string baseUrl = @"C:\site\assets\";
string html = "<img src='icons/iron.png'>";
// Render HTML to PDF
PdfDocument pdf = renderer.RenderHtmlAsPdf(html, baseUrl);
// Export PDF
pdf.SaveAs("html-with-assets.pdf");
Compress your PDF files to reduce file size without sacrificing quality, making your documents easier to share and store.
Learn how to:comparess PDFsusing IronPdf;
ChromePdfRenderer renderer = new ChromePdfRenderer();
PdfDocument pdf = renderer.RenderUrlAsPdf("https://en.wikipedia.org/wiki/Main_Page");
// Define and include additional options if needed
CompressionOptions compressionOptions = new CompressionOptions();
compressionOptions.ShrinkImages = true;
compressionOptions.CompressImages = true;
// Compress images in the PDF
pdf.Compress(compressionOptions);
pdf.SaveAs("compressed.pdf");
Support for asynchronous and multithreaded operations enables faster PDF generation and better performance for large-scale documents.
Learn how to:use multithreading processusing IronPdf;
// Instantiate Renderer
var renderer = new ChromePdfRenderer();
// All IronPdf Rendering methods have Async equivalents
var pdf = await renderer.RenderHtmlAsPdfAsync("<h1>Html with CSS and Images</h1>");
// Export to a file or Stream
pdf.SaveAs("async_example.pdf");
Create custom logs to track PDF generation, modification, and conversion processes, enabling better debugging and performance analysis.
Learn how to:enable custom loggingIronSoftware.Logger.LoggingMode = IronSoftware.Logger.LoggingModes.Custom;
IronSoftware.Logger.CustomLogger = new CustomLoggerClass("logging");