Free Support Forum - aspose.com

HTML Page with WEBP image does not convert to XPS

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

@kidkeogh

We were able to reproduce the issue in our environment while testing the scenario with Aspose.HTML for .NET 21.2. Hence, have logged it as HTMLNET-2991 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.