PdfRenderer and PdfViewerControl

I am trying to use the PdfRenderer to generate thumbnails for the pdf documents.  This all works perfectly on my local machine because the PDfRender is able to generate the Pdfium.dll locally.  I trying to wrap all this functionality into a nice nuget package for my team to use when deploying application to the Azure cloud, however the dll is unable to be created at runtime due to the permission in the Azure App Services.  I have attempted to deploy the dll directly to the app server but that doesnt work, and I cant seem to find a way to bundle the dll directly with the library.


I thought maybe using the PdfViewControl would work better but there are a lot of dependencies for Windows.Forms that dont make sense for a web based library.  


Are there any options for converting a page of PDF to an image that dont require windows forms or that the run time generate a dll?

Is there another library I can include that will deploy the Pdfium.dll without the need for the runtime to create it?




1 Reply

SK Shamini Kiruba Sobers Syncfusion Team February 1, 2022 07:41 AM UTC

Hi Aaron, 

Kindly follow the steps given in the below UG link and let us know if it helps to resolve the issue related to Pdfium.dll. 

There is no option for converting a page of PDF to an image other than ExportAsImage. Syncfusion PDF Viewer will generate the Pdfium.dll in the runtime. So, it is not possible to stop this. However, you can place the Pdfium.dll in the published location as in the above documentation. 

Regards, 
Shamini 


Loader.
Up arrow icon