I am evaluating Select.HtmlToPdf.NetCore to convert Html string to Pdf in my C# Azure function app.
I was trying SelectPdf-HtmlToPdf-Samples-v23.2.0 downloaded from Selectpdf website especially the Azure function.
I tried invoking the Azure function running from a local Visual Studio instance but getting an error upon executing;
doc = converter.ConvertHtmlString(html);
I am not using a base url here but I am getting the error
Conversion error: Could not open url.
Since I am not using a base url as a parameter, not sure what is causing this error.
Below
codeworks fine for me:csproj:Output:Alternatively, html sent as body when calling function:
Output: