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>