Free Support Forum -

How to convert a src image inside html to PDF

Hi there,

I’ve been having a hard time trying to figure out the following:

I’ve been testing the ASPOSE PDF component and so far it’s been very useful. I’ve been looking at the samples and I’ve not found a solution to my problem. There’s a sample that shows how to convert the contents of a string (a file, a stream, etc) to PDF. This is straight-foward, no problems at all. The problem I’m facing is that I developed a web site. I have a third-party control that acts as an editor. This editor saves its contents as HTML. One of the elements that gets saved is the src which points to an image. When I want to convert the whole HTML content, I get an “?” instead of the image itself. The problem I believe is that ASPOSE does not recognize the virtual path where the image file is found.

For example the HTML is (part of the HTML):

The whole HTML content get converted correctly but I do have problems with the image. How could I accomplish this? can some one shed some light on this?

Have a nice day,

Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.Pdf,

We have found your mentioned issue in HTML2Pdf conversion after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-30654. You will be notified via this forum thread regarding any update against your issue.

Sorry for the inconvenience,