HTML to PDF or image to PDF, both of which are fully supported by the IronPDF API. HTML to PDF provides better results because image to PDF will always have rasterized objects within it.
Version: 2022.3.5084What's the easiest way to generate a PDF in C#? The easiest way to generate a PDF in C# is from existing content, we highly recommend using one of two strategies.
License: Free To Try $499.00
Operating System: Windows
HTMLto PDF or image to PDF, both of which are fully supported by the IronPDF API. HTML to PDF provides better results because image to PDF will always have rasterized objects within it.
How can you generate a PDF from HTML in C# using IronPDF? Easy.
Start with any existing URL, HTML string or HTML file and use IronPDF to convert it to, convert that HTML to PDF in a single line of code. You will find code examples in detail on the homepage of ironpdf.com.
What types of .Net projects can be used to generate PDFs with IronPDF?
Any type of .Net project which supports .Net framework 4.0, .Net core 2.0 or class libraries supporting .Net standard 2.0 and above can be used to generate PDFs in C# or VB .Net using IronPDF. We support Azior, Docker, Linux, Mac and Windows targets.
Can I link my custom CSS files to the HTML for generating and styling PDFs in .Net? Yes, IronPDF is a fully functional web browser.
Version 2022.3.5084: Fixes bug where PNG images didn't load correctly when using .NET6. Fixes bug where license stamps could not be clicked. Improves compatibility with some Linux distributions. Improves overall stability. Improves multithreading support. Updates to latest Pdfium version.
Version 2021.9: * Pixel Perfect Chrome HTML to PDF Rendering * Full Multithreading an Async Support * Razor and MVC helpers added * ChromePdfRenderer Class added * WebKitPdfRenderer Class added * AdaptivePdfRenderer Class added
Version 2021.3.1.0: * Fixed AccessViolationException on rasterising high DPI PDF files * PdfDocument.FromFile now supports even more PDF types * Improved PDF to MultiPage TIFF * Improved MultiPage TIFF to PDF * Improved Documentation * Improved PDF to Image performance * Smaller deployment footprint
Version 2021.3.1: * Improved PDF to Image performance * Smaller deployment footprint * PdfDocument.FromFile now supports even more PDF types * Fixed AccessViolationException on rasterising high DPI PDF files * Improved PDF to MultiPage TIFF * Improved MultiPage TIFF to PDF * Improved Documentation
Version 2020.11.0: The latest version of IronPDF can now generate PDF from HTML string, Images and URL's using C#.