Thank you for your reply.
It should not be an issue with the path, as I am using a relative path. Here is my complete code.
- Code: Select all
ConvertHtmlStringToPDF();
void ConvertHtmlStringToPDF()
{
string htmlString = File.ReadAllText(@"Narender4218.html");
string outputFile = "ToPDF.pdf";
string pluginPath = "plugins";
//plugins
HtmlConverter.PluginPath = pluginPath;
HtmlConverter.Convert(htmlString,
outputFile,
//enable javascript
true,
//load timeout
10 * 1000,
//page size
new SizeF(612, 792),
//page margins
new Spire.Pdf.Graphics.PdfMargins(0),
//load from content type
LoadHtmlType.SourceCode
);
}
Could you please try running the command "sudo xvfb-run dotnet HtmlProgressbarTest.dll" again to check if it is related to dotnet permissions? If the issue persists, please use a simple html file, rename it to "Narender4218.html", and test again to see if it is related to the file. Thank you very much for your patience and assistance.
Sincerely,
Doris
E-iceblue support team