IronPDF Common Issues

Slow Render on first PDF render for HTML to PDF

After application start-up, the first PDF render for HTML to PDF may be significantly slower than subsequent renders.

Root Cause

IronPDF will initiate checks to ensure that the required CEF browser DLLs for the environment are available. Missing DLLs will be downloaded. Both the initiation checks and the downloads will take some time.

Add the relevant IronPDF Nuget packages for your environment to preload the DLLs and skip the download.

Solution

  • On application start-up, invoke the IronPDF Initialize method to immediately trigger the initiation checks. The first PDF render will no longer need to perform the initiation check since it will have been done upon application start-up.
  • Alternatively, pre-render a dummy PDF during application start-up. This will also trigger the initiation check so that your actual PDF render will not need to perform the check.

Implement ONLY 1 of the above solutions. DO NOT implement both.