Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Fri Jun 01, 2018 12:24 pm

Hello

I am trying to convert HTML file to PDF using Spire PDF
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert

On the development machine, it is working correctly but on production server (Windows Server 2008 R2) it is not and the error appearing is the following:

System.InvalidOperationException: The conversion provider cann't be found.
Please make sure:
1. the folder "plugins" under the same folder of Spire.Pdf.dll
2. exists "plugins\HTMLConverter.dll" and other "plugins\*.dll"
at Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(String url, String fileName, Boolean enableJavaScript, Int32 timeout, SizeF pageSize, PdfMargins margins)

The application is hosted on IIS, pool (Enable 32-bit enabled) on integrated mode
plugins folder added to the same folder as Spire.Pdf.dll

appreciate your help

bavarian298
 
Posts: 8
Joined: Wed Jan 21, 2015 2:21 pm

Mon Jun 04, 2018 2:40 am

Dear bavarian298,

Sorry for late reply as weekend.
Please try to use the following method to specify the Plugin Path directly. Here is the sample code.
Code: Select all
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath = @"E:\Test\PdfTest\bin\Debug\plugins\";


Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Jun 08, 2018 9:17 am

Dear bavarian298,

Greetings from E-iceblue.
How is your issue going now ? Could you please give us some feedback at your convenience ?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF