Hi Team,
a) Sample application is working on dotnet 5.0 version with ubuntu 20.0 but when iam trying do same with dotnet 6.0 it getting as error below
Unhandled exception. System.InvalidOperationException: The conversion provider fail:Fail to load /root/HtmlToPdf/Qt/linux-64/libHTMLConverter.so : error
For more help, please visit below website.
https://www.e-iceblue.com/Tutorials/Spi ... lugin.htmlb) For this i have downloaded latest plugin which you have suggested then iam getting another issue as below
QCoreApplication::applicationDirPath: Please instantiate the QApplication object first.
My question why the latest plugins that u suggested is not working ...
c) Conclusion :-
Working fine with env
os : - ubuntu 20.04
dotnet version : - 5.0
plugins : - linux-64/
Not working with below env
os : - ubuntu 20.04
dotnet version : - 6.0
plugins : -
https://www.e-iceblue.com/downloads/plu ... x64.tar.gzd) Sample code with which it is not working
using Spire.Pdf.Graphics;
using Spire.Pdf.HtmlConverter.Qt;
using System;
using System.Drawing;
namespace HtmlToPdf
{
internal class Program
{
static void Main(string[] args)
{
string url = @"/var/www/HtmlToPdf/data/1.html";
//Specify the output file path
string fileName = @"/var/www/HtmlToPdf/output/urltopdf.pdf";
//Specify plugin path
//Please replace the corresponding plugin according to your system environment
string pluginPath = @"/var/www/HtmlToPdf/Qt/plugins";
//Set plugin path
HtmlConverter.PluginPath = pluginPath;
//Convert URL to PDF
HtmlConverter.Convert(url, fileName, true, 100000, new Size(1080, 1000), new PdfMargins(0));
}
}
}
Please we need the resolution for this issue ASAP .