How to Install and Deploy the Iron PDF Library?

The easiest way to install IronPdf is using NuGet Package Manager for Visual-Studio: The package name is “IronPdf”. https://www.nuget.org/packages/IronPdf/

PM > Install-Package IronPdf

Installation Paths

IronPDF is a .Net Framework package. To render HTML as a PDF it must embed and deploy the safe web browser Chromium - developed in C++. There is no need to install any other programs or set your application to 32 or 64 Bit. The process is entirely automated.

In case IronPDF's HTML to PDF throws an failed rendering exception (very unlikely), you way need to guide IronPDF to an appropriate location to unpack the native browser binaries. The Temp folder is normally ideal. Program Files is never an appropriate location unfortunately.


IronPdf.Installation.TempFolderPath = @"C:\My\Safe\Path";
IronPdf.Installation.TempFolderPath = "C:\My\Safe\Path"
VB   C#

https://ironpdf.com/c%23-pdf-documentation/html/P_IronPdf_Installation_TempFolderPath.htm

Note: After updating a path always remember to clear all temp and cache folders on your development and servers. Redeploy a CLEAN version of your application.

Permissions and IIS

You may also need to give the IIS user (IUSER) read and write permissions to your Installation Path Folder AND to your Windows and Temp Folder if the server has been locked down.

Microsoft Visual C++

IronPDF does not require Microsoft Visual C++ to render PDF documents. It does however need Visual C++ Redistributable 2017 to be installed if you wish to render PDF Documents as images using PdfDocument.RasterizeToImageFiles.

This should be installed on the target server packed with your installer.

.Net Framework can run as 32 bit even on 64 bit platforms, so it is necessary to install Visual c++ 2017 in both 32 and 64 bit versions.

Download links can be found on this webpage: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads