Having a href in an anchor that is invalid causes the converter to fail. An example is a just having a scheme such as http or https.
private static void HrefParseError()
{
const string html = "<html><body><a href='https://'>Error</a></body></html>";
using (var document = new Aspose.Html.HTMLDocument(html, "."))
Aspose.Html.Converters.Converter.ConvertHTML(document, new PdfSaveOptions(), "out.pdf");
}
@GrantWalker
Can you please also share which API version are you using at your end?
We first noticed it in 21.8 but have been able to replicate with the current version 23.9. The exception raised is “Failed to parse URL: https://”
Thanks again.
Grant
@GrantWalker
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): HTMLNET-4968
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The issues you have found earlier (filed as HTMLNET-4968) have been fixed in this update. This message was posted using Bugs notification tool by avpavlysh
1 Like