Html to pdf converter error

Hello
i try to convert html to pdf and i get the attach error
the code is

PDFNet.Initialize();
HTML2PDF.SetModulePath(html2PdfLocation);

using (PDFDoc doc = new PDFDoc())
{
try {

HTML2PDF converter = new HTML2PDF();
HTML2PDF.WebPageSettings settings = new HTML2PDF.WebPageSettings();
settings.SetAllowPlugins(true);
settings.SetJavaScriptDelay(2000); // give 2 seconds for JS
converter.InsertFromURL(outpath, settings);
if (converter.Convert(doc))
{
int ind = files[0].LastIndexOf(’.’);
doc.Save(files[0].Substring(0, ind) + “.pdf”, SDFDoc.SaveOptions.e_linearized);
outpath = files[0].Substring(0, ind) + “.pdf”;
}
else
Console.WriteLine(converter.GetLog());

I tried too this code

if (HTML2PDF.Convert(doc, outpath))//fileConvertToPdf))//outpath))
{

int ind = files[0].LastIndexOf(’.’);
doc.Save(files[0].Substring(0, ind) + “.pdf”, SDFDoc.SaveOptions.e_linearized);
outpath = files[0].Substring(0, ind) + “.pdf”;
}
else
{

}
}
catch(Exception ex)
{

}
}

Waiting for a quick reply

thank

Tehila

image003.jpg

Is this with any HTML/URL input? Or certain input?

If certain input, can you please provide the URL (if public), or the HTML content, that you are trying to convert.

it is all url that i try convert (unc \ http \ or like c:)
if i try convert html(string that contais html|) i successful

‫בתאריך יום ה׳, 18 ביולי 2019 ב-1:34 מאת ‪Ryan via PDFTron PDFNet SDK‬‏ <‪pdfnet-sdk+APn2wQeLvqS1aDfDhWC9f0VNVFmqWSqRzFMp7bxAfGQjNE7qPobsr@googlegroups.com‬‏>:‬

Is it a public URL, that we can test/try?
Is it a HTTPS URL?

Is downloading the content yourself, and converting the local file, an option?