We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to use Pdfium rendering engine in Syncfusion PDF viewer for exporting the PDF documents into images

Platform: ASP.NET Web Forms |
Control: PdfViewer

From and higher versions of Essential Studio release, the PDF viewer control provides a robust rendering of PDF document using Pdfium rendering engine. You can use Pdfium rendering to Export the PDF documents to images in the ASP.NET platform using the  Syncfusion.PdfViewer.Windows reference. The steps to use Pdfium rendering are as follows:

1. Copy the Pdfium assembly’s folder to a local folder from the installation path. The folder name must be “Pdfium”. 

The Pdfium assemblies will be available in

{$SystemDrive}:\Program Files (x86)\Syncfusion\Essential Studio\{Essential Studio version}\Pdfium



The Pdfium folder contains two folders namely X86 and X64, and both contains pdfium.dll assembly for the respective architecture. The Syncfusion PDF viewer is designed to detect the architecture of the target machine in which it is deployed and pick corresponding pdfium.dll to use it.


2. Then, the ReferencePath property of the PDF viewer should be set to locate the “Pdfium” folder.The following code snippet illustrates how to export the PDF document into images using the PDFium.

string mappath = HttpContext.Current.Server.MapPath("~/Data/Sample.pdf");
PdfViewerControl viewer = new PdfViewerControl();
//Set the reference path of Pdfium assemblies            
viewer.ReferencePath = "D:/";
//Set the rendering engine of PDF viewer to Pdfium
viewer.RenderingEngine = PdfRenderingEngine.Pdfium;
//Load the PDF document 
string imagePath = HttpContext.Current.Server.MapPath("~/Images/");
Bitmap[] img = viewer.ExportAsImage(0, viewer.PageCount - 1);
for (int i = 0; i < img.Length; i++)
    img[i].Save(imagePath + "\\Image" + i + ".png");


Sample link:


Here is the User Guide documentation of Syncfusion PDF Viewer in ASP.NET Web Forms.

Refer to this link to explore a rich set of PDF Viewer features.

2X faster development

The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
You must log in to leave a comment
Andrew Butlin
Sep 03, 2018

I've followed these steps exactly and am getting a could not load dll error for pdfium.

Mohan Selvaraj [Syncfusion]
Sep 03, 2018

Hi Andrew,


We suspect that the ReferencePath for the Pdfium assembly may be incorrect so the “could not load dll error”  issue occurs in your end .So kindly ensure the provided location contains Pdfium assembly.


For example:


If the Pdfium assembly is available in this path D:\Pdfium\x64 or D:\Pdfium\x86,the reference path should be  viewer.ReferencePath = "D:/";


The parent folder has to be provided as the path in the ReferencePath API.



If the above provided solution does not resolve your issue. Kindly provide more details about that issue ,So that would be helpful for us to analysis more and assist you better.



Mohan S.


Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile