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 Oct 21, 2014 6:17 pm

I am having trouble setting up the HtmlConverter plugins for the spire package it ask this error
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"

I have the plugin folder with all dll as downloaded with the spire.pdf.dll and the spire.license but it still throwing error.


Code: Select all
<%@ Page Language ="C#" Debug = "true" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Spire.Pdf" %>
<%@ Import Namespace= "System.Text" %>
<%@ Import Namespace="System.Collections.Generic"%>
<%@ Import Namespace="Spire.Pdf.HtmlConverter.Qt" %>
<%@ Import Namespace="Spire.Pdf.Graphics" %>
<%@ Import Namespace="System.Threading" %>


<script runat="server" type="text/C#" >
   protected void Page_Load(object sender, EventArgs e)
   {
          HtmlConverter.PluginPath = "plugins";
   HtmlConverter.Convert("url", "HTMLtoPDF.pdf",

                //enable javascript
                true,

                //load timeout
                10*10000,

                //page size
                new SizeF(600, 400),

                //page margins
                new PdfMargins(0, 0));
      }

</script>

andrewhoang09
 
Posts: 8
Joined: Tue Jul 15, 2014 8:56 pm

Wed Oct 22, 2014 6:22 am

Hello,

Thanks for your inquiry.
The path you set is incorrect, in web, please use MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.
Kindly note that if the plugin folder have been put together with Spire.Spire.Pdf.dll, it is unneccessary to set the PluginPath If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Oct 22, 2014 5:23 pm

Thanks for the reply and I am still stuck on this problem
It still doesn't seem to work I tried using the map path and it still giving me errors I tried it like this

Code: Select all
<%@ Page Language ="C#" Debug = "true" %>
<%@ Import Namespace="System" %>
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Web" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="Spire.Pdf" %>
<%@ Import Namespace= "System.Text" %>
<%@ Import Namespace="System.Collections.Generic"%>
<%@ Import Namespace="Spire.Pdf.HtmlConverter.Qt" %>
<%@ Import Namespace="Spire.Pdf.Graphics" %>
<%@ Import Namespace="System.Threading" %>
<%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="Newtonsoft.Json" %>
<%@ Import Namespace="Newtonsoft.Json.Linq" %>

<script runat="server" type="text/C#" >
      protected void Page_Load(object sender, EventArgs e)
      {
         
   HtmlConverter.PluginPath = HttpContext.Current.Server.MapPath(@"..\bin\plugins");
   HtmlConverter.Convert("http://www.url/forum/html-to-pdf.aspx", Server.MapPath(@"..\Dashboards\Esource\Html.pdf"),

                //enable javascript
                true,

                //load timeout
                10*10000,

                //page size
                new SizeF(600, 400),

                //page margins
                new PdfMargins(0, 0));
            System.Diagnostics.Process.Start("HTMLtoPDF.pdf");
}
</script>

andrewhoang09
 
Posts: 8
Joined: Tue Jul 15, 2014 8:56 pm

Thu Oct 23, 2014 1:35 am

Hello,

Thanks for your response.
Please confirm if the plugin version you downloaded corresponds to your system.
For X32: HTMLConvertor-0.2.3.3.zip
For X64: HTMLConvertor-0.3.2.3-x64.zip
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Oct 27, 2014 9:07 am

Hello,

Has the issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Mon Nov 23, 2015 6:12 pm

I was able to make it work in a 64bit PC, After installing Visuacl C++ 2010 Redistributable Pkg x86 from https://goo.gl/8QaKtE
It may help you..

luchezco
 
Posts: 12
Joined: Thu Oct 15, 2015 2:17 pm

Tue Nov 24, 2015 1:39 am

Hi,

Thank you very much for your sharing.

Have a nice day.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Wed Oct 18, 2017 3:48 pm

Hello,

While using this plugin, I have trouble to render/convert to pdf a html5 canvas (filled at client side with javascript). In the sample attach to this post, It never render, but in the real project it does render only the first time. The client I'm working on right now doesn't not own any of your product, but will surely buy it if we can make to sample work (with html5 canvas rendered at client side via javascript).

Note that the canvas bg image should appear 2 time on the PDF (as is the index.html file).

I CANNOT ADD ATTACHMENT FILE, PLEASE TELL ME WHERE TO SEND IT.

Thanks!
Robin Leblond
.Net Consultant, Montréal, Qc, Canada

robinleblond
 
Posts: 22
Joined: Fri Jan 29, 2016 5:46 pm

Thu Oct 19, 2017 2:21 am

Hi Robin,

Thanks for your inquiry.
Please send the related files to us(support@e-iceblue.com) via email.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Mon Oct 23, 2017 2:24 pm

Hi Betsy, I finally found out that it was the Browser Link (see link below) that was causing an issue to your converter. Be disabling it everything is working fine. So, to me, this is ok. But again thanks for your amazing service.

https://docs.microsoft.com/en-us/aspnet/core/client-side/using-browserlink?tabs=aspnetcore2x
Robin Leblond
.Net Consultant, Montréal, Qc, Canada

robinleblond
 
Posts: 22
Joined: Fri Jan 29, 2016 5:46 pm

Tue Oct 24, 2017 1:34 am

Hi Robin,

Glad to hear that you have managed to solve the issue.
Any question, please feel free to contact us.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF