We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Converting Html to Pdf with Embedded Svg images becomes invisible

When trying to convert to pdf from html, all Svg images come out invisible, same for embedded jpegs.
Currently only png format works fine


        MemoryStream requestStream = await GetRequestStream();
        HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions("");
        Document htmlDocument = new Document(requestStream, htmlLoadOptions);
        var responseStream = new MemoryStream();
        htmlDocument.Save(responseStream, SaveFormat.Pdf);
        responseStream.Seek(0, SeekOrigin.Begin);
        return PdfResult(responseStream);

something.html.zip (16.6 KB)


We have tested your scenario with the latest version 18.5 of Aspose.PDF for .NET API, and the JPEG image is visible in the output PDF document. We managed to replicate the problem of missing SVG images. An investigation has been logged under the ticket ID PDFNET-44845 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

any update on the above issue?


Thanks for your inquiry.

I am afraid that earlier logged issue is not yet resolved due to other pending issues in the queue. We will definitely let you know as soon as some definite updates are available regarding issue resolution. Please be patient and spare us little time.

We are sorry for the inconvenience.

Does this same issue exist in the latest Java version of Aspose.PDF? I’m seeing the same issue.


Regretfully the issue is still pending for a resolution. We will surely update within this forum thread as soon as it is resolved. Please spare us some time.