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.

Tue Jun 29, 2021 9:42 pm

I've reviewed the other threads but I cannot seem to get this working. It is currently failing in PRODUCTION.

Code: Select all
[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"]
   Spire.Pdf.HtmlConverter.Qt.HtmlConverter.init(String url, Boolean enableJavaScript, Int32 timeout, SizeF pageSize, PdfMargins margins) +237
   Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(String url, String fileName, Boolean enableJavaScript, Int32 timeout, SizeF pageSize, PdfMargins margins) +64
   Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(String url, String fileName, Boolean enableJavaScript, Int32 timeout, SizeF pageSize, PdfMargins margins, LoadHtmlType urlHtml) +42


1. We are fully licensed.
2. Redistributables are installed.
3. Plugin folder is in the bin folder.
4. Permissions are applied to the application pool account.
5. Application pool allows 32 bit applications.
6. License file is in the correct spot.
7. We tried the plugin path directly with on success: Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath

Windows Server 2019 Standard
64 Bit
Version: 10.0.17763

Application is deployed through DevOps using web deploy IIS imports.

Any help is greatly appreciated.

Thanks,

daniel.dority
 
Posts: 14
Joined: Thu Jan 11, 2018 2:57 pm

Wed Jun 30, 2021 10:54 am

Hello,

Thank you for your inquiry.
In order to help us investigate your problem accurately, please provide the following information. Thanks in advance for your assistance.
1. Your application info (E.g. Asp.Net Core, X64 platform)
2. Which plugin do you use? the x86 or the x64?
3. Does this problem also occur when running on local?

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Wed Jun 30, 2021 1:57 pm

1. Any CPU
2. How do I tell? I believe its the 86x one because I had to set Allow 32 bit applications on the old server.
3. No.

daniel.dority
 
Posts: 14
Joined: Thu Jan 11, 2018 2:57 pm

Thu Jul 01, 2021 11:08 am

Hello,

Thank you for your sharing.
We did an initial test but did not reproduce your problem on my side. I speculated that it should be caused by a mismatch between your project platform and the plugin version. You could use the following code to choose the corresponding plugin. ​If the problem still exists, please provide your project (which can reproduce your problem) for further investigation. You could upload it to the DropBox or OneDrive and then share the download link with us. Thanks in advance.
Code: Select all
string pluginPath;
if (Environment.Is64BitProcess)
{
    pluginPath = @"D:\Spire\plugins-windows-x64\plugins";
}
else
{
    pluginPath = @"D:\Spire\plugins-windows-x86\plugins";
}
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath = pluginPath;

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Thu Jul 01, 2021 3:21 pm

I'm getting frustrated with the one response a day support.

What are you hours so I can catch you throughout the day. I am on CST.

After downloading the new bits and targeting x86 platform it can now find the folder.


This line of code is now not generating a single thing. It is taking our HTML content and producing a 0 KB file.
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert(content, placeholder, true, 20000, new System.Drawing.SizeF(612, 792), new Spire.Pdf.Graphics.PdfMargins(0), LoadHtmlType.SourceCode);

I can guarantee that the content has HTML in it. And the placeholder contains a temp file.

What can I do next?

daniel.dority
 
Posts: 14
Joined: Thu Jan 11, 2018 2:57 pm

Thu Jul 01, 2021 8:20 pm

We have abandoned this product in favor of a competitor. We can continue the conversion in our email thread if you have any questions as to why.

daniel.dority
 
Posts: 14
Joined: Thu Jan 11, 2018 2:57 pm

Fri Jul 02, 2021 1:27 am

Hello,

Thank you for your feedback.
Our working time is GMT+8 9:00 AM to 18:00 PM, sorry for the communication inconvenience caused by the time difference between us. I will continue to communicate this issue with you via email. Sorry again for the inconvenience caused.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1657
Joined: Wed Apr 07, 2021 2:50 am

Fri Jan 27, 2023 3:32 pm

I had the same problem as described here.

I resolved it by doing the following:

Under Build settings->Platform Target, we have Any CPU

Uncheck "Prefer 32-bit".

This resolved the issue for us. However, I would like to know why?

Thank you,
Tom

rutzelt
 
Posts: 43
Joined: Mon Sep 22, 2014 4:59 pm

Sat Jan 28, 2023 3:36 am

rutzelt wrote:I had the same problem as described here.

I resolved it by doing the following:

Under Build settings->Platform Target, we have Any CPU

Uncheck "Prefer 32-bit".

This resolved the issue for us. However, I would like to know why?

Thank you,
Tom


Hello,

Thanks for your inquiry.
For different Platform targets, you need to use the corresponding version of QT plugin. In your case, you may be using the X64 version of the QT plugin, so there will throw exception when “Prefer-32bit” is selected as the project Platform target. For the different Platform targets, our website provides the download link of the corresponding version Of QT plugin(as shown in the screenshot below), you can access the download page from the link below.

https://www.e-iceblue.com/Tutorials/Spi ... lugin.html

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Fri Feb 03, 2023 8:26 am

rutzelt wrote:I had the same problem as described here.

I resolved it by doing the following:

Under Build settings->Platform Target, we have Any CPU

Uncheck "Prefer 32-bit".

This resolved the issue for us. However, I would like to know why?

Thank you,
Tom

Hello,

Greeting from E-iceblue.
Does my explanation solve your confusion? Could you give some feedback at your convenience?

Sincerely
Abel
E-iceblue support team
User avatar

Abel.He
 
Posts: 1010
Joined: Tue Mar 08, 2022 2:02 am

Return to Spire.PDF