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 Sep 11, 2018 9:29 am

The new plugin for generating pdf's from html is not working here.

/Tutorials/Spire.PDF/Spire.PDF-Program-Guide/Convert-HTML-to-PDF-with-New-Plugin.html
(also 404 on downloadlink there)

Error message:
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"

We placed the plugins directory in the correct folder. Or is it because we used the plugins folder from the example code zip-file?

bmatthys
 
Posts: 1
Joined: Tue Sep 11, 2018 9:23 am

Tue Sep 11, 2018 11:55 am

Hello,

Thanks for your inquiry.
The downloading link on our website is available now, please download it from plugin and test again. If there is still the problem, please provide your html file, system configuration (E.g. Win7 64-bit), your application type (E.g. WinForm App) as well as the target platform of your project (E.g. X86/X64) to help us do a further investigation.

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Thu Sep 13, 2018 6:49 am

Hello,

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

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Wed Feb 05, 2020 7:53 am

Hi,

For us it is X64 architecture but it didn't work and hence we placed X32 version of the 'plugins' folder and enabled 32-bit application support on IIS.

Ours is a web application and it works with this configuration only at Windows 10 but not on another machine which is having Windows 7.

Any help would be preferable from your end.

nsivasamy
 
Posts: 5
Joined: Mon Jul 15, 2019 4:26 pm

Wed Feb 05, 2020 9:31 am

Hi Sivasamy,

Thanks for your post.
Did you encounter the same error message "The conversion provider can't be found"? If so, please check again you have placed the folder 'plugins' under the same folder of Spire.Pdf.dll on your Win7. Besides, you could also use the following method which specifies the path of the folder directly to have a try.
Code: Select all
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath = @"E:\PluginTest\bin\Debug\plugins";

Or if I misunderstood, to help us investigate your issue more accurately, please provide the following information. Thanks in advance.
1) Your detailed error information, such as some screenshots or a sample project that could reproduce your issue.
2) Your testing environment information, such as OS information (E.g. Windows 7, 64bit) and Region setting (E.g. China, Chinese).
3) Some screenshots about your IIS settings.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Thu Feb 06, 2020 11:30 am

Hi,

We installed the dependency i.e. VC++ 2015 redistributable on the new machine and now we got the PDF converter working.

But now we have only one issue, whenever we access the plugin in code, the session context resets and users are forced out of the application to re-login.

Do you've any inputs regarding this issue so that we can inspect and fix?

nsivasamy
 
Posts: 5
Joined: Mon Jul 15, 2019 4:26 pm

Fri Feb 07, 2020 9:49 am

Hello,

Thanks for your feedback.
Could you please describe your issue with detailed information? Did you mean after using the Plugin method to convert HTML to PDF, the session context would reset? Sorry we haven't encountered a similar situation before.
To help us further look into your issue, please provide the following information for our reference. Thanks in advance.
1) Your application type, such as ASP.NET Web application.
2) Your deployment environment information, such as OS information (E.g. Windows Server 2012, 64bit) and Region setting (E.g. China, Chinese).
3) Your testing code, input file (if any) or a sample project that could reproduce your issue.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Feb 10, 2020 10:15 am

Yes, the application is "ASP.NET MVC" and we use 32-bit run-time enabled application pool, hence we use only x86 version of the plugin itself on all places under '\bin' folder.

But the problem comes for both x64 and x86 and we have not figured out why the session context gets reset when this specific line of code which is using the plugin is called.

Code: Select all
 
using (MemoryStream ms = new MemoryStream())
 {
      string NewAnnotation = Regex.Replace(Annotation, "font-family:\\w+", "font-family:Arial");
      HtmlConverter.Convert(NewAnnotation, ms, true, 100 * 1000, Spire.Pdf.PdfPageSize.A4, new PdfMargins(30, 30, 30, 120), Spire.Pdf.HtmlConverter.LoadHtmlType.SourceCode);

      using (PdfDocument htmldoc = new PdfDocument())
      {
                htmldoc.LoadFromStream(ms);
                htmldoc.SaveToFile(filepath, Spire.Pdf.FileFormat.PDF);
      };
};

nsivasamy
 
Posts: 5
Joined: Mon Jul 15, 2019 4:26 pm

Tue Feb 11, 2020 7:44 am

Hi Sivasamy,

Thanks for your information.
Sorry I didn't reproduce your issue on my side. To help us invetigate your issue more accurately, could you please provide a runnable sample project that could reproduce your issue? And tell us your testing environment information, such as OS information (E.g. Windows Server 2012, 64bit) and Region setting (E.g. China, Chinese). You could send them to us via email (support@e-iceblue.com). Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Feb 18, 2020 12:39 pm

Hi,

It was found there is a license issue and we cannot use the plugin without proper licensing.

Can you please let us know if we can buy Spire.PDF and Spire.DOC together with a single license and proceed further?

If yes, please let us know so that our team will contact sales with your prescription.

Thanks.

nsivasamy
 
Posts: 5
Joined: Mon Jul 15, 2019 4:26 pm

Wed Feb 19, 2020 1:57 am

Hello,

Thanks for your feedback.
For your needs, we could authorize both Spire.Doc and Spire.PDF in a single license. Please contact our sales team(sales@e-iceblue.com) for details on purchasing and custom licenses.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Dec 08, 2020 10:31 am

Hello Support Team,

We are using spire.pdf new plugin in our ASP .NET MVC application (dot net Version- 4.6.1). But We are getting
this error "The conversion provider can't be found.
Please make sure the folder "plugins" is under the same folder of Spire.Pdf.dll."


We have downloaded the x64 bit plugin from your site and after unzip stored in project "bin" folder.
We have installed the c++ redistributable from plugins folder. (..\plugins\vcredist_x64.exe);
Our OS- Win-10 64 bit
Visual Studio Version- 2017
Our code is as follows.

Spire.Pdf.HtmlConverter.Qt.HtmlConverter.PluginPath = Server.MapPath("~/bin/plugins");
Spire.Pdf.HtmlConverter.Qt.HtmlConverter.Convert("our html url", "E://htmlpdf.pdf",
true,
100 * 1000,
new SizeF(842, 595),
new PdfMargins(20, 30, 20, 30));

We are facing this issue in visual studio. But when hosting the application in IIS is working fine.

Can you please help. Currently we are using trial version of the product and planning for buying the license once every thing works well.!

mdminhaj
 
Posts: 5
Joined: Tue Oct 15, 2019 12:18 pm

Wed Dec 09, 2020 5:56 am

Hello,

Thanks for your inquiry.
By default, Visual Studio uses the 32 bit version of IIS Express. And you are using the x64-bit plugin, I suspect your problem should be caused by this.
Please try to enable the “Use the 64 bit version of IIS Express for web sites and projects” option by “Tools->Options->Projects and Solutions->Web projects”, as shown below. If there are still any questions, please feel free to contact us.
8B341243-F89C-4da6-9055-24224BC5147A.png


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Wed Dec 09, 2020 10:51 am

Hello,

Thank you for your help. It's worked for us.

mdminhaj
 
Posts: 5
Joined: Tue Oct 15, 2019 12:18 pm

Thu Dec 10, 2020 7:08 am

You are welcome. If you have any other question, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF