I tried running the example code to convert simple HTML content to a PDF file and it works fine on my local machine.
Aspose.Html.Converters.Converter.ConvertHTML(@“Hello World!!”, “.”, new Aspose.Html.Saving.PdfSaveOptions(), “output.pdf”);
However, when I run this on a server running the app on a UNC path (e.g.
\\myfilesystem\app), it throws the exception:
Failed to parse base URL:
at . [T](String , Object )
at .(String , Object )
at Aspose.Html.Url…ctor(String url, String baseUrl)
at .(String , String )
Since I’m providing the content, I’m not sure why ConvertHTML is even instantiating a Url class as can be seen in the stack trace Url(url, baseUrl). Can you suggest a workaround for this?
Currently, my employer has a license for GroupDocs.Conversion and it appears the same issue affects the Converter class when trying to convert from HTML.