637485499720747708_test_532631.WEBP.zip (208.4 KB)
Hello Aspose
I’m trying to convert a HTML document that just acts as a “placeholder” for a WEBP image to XPS.
The code to do this is quite trivial and it works for other image types such as JPG or PNG
Dim oDoc As Aspose.Html.HTMLDocument = Nothing
Dim oOptions As Aspose.Html.Saving.XpsSaveOptions = Nothing
Dim oURI As Uri = New Uri(uriString:=sFile)
oDoc = New Aspose.Html.HTMLDocument(address:=oURI.AbsoluteUri)
oOptions = New Aspose.Html.Saving.XpsSaveOptions
Aspose.Html.Converters.Converter.ConvertHTML(oDoc, oOptions, sToFileName)
The file is generated and it can be viewed in an XPS viewer, but the image does not show