Convert HTML with images to PDF in Python SDK of Aspose.PDF Cloud

The documentation is clear on how to use Aspose.Pdf Cloud to convert an HTML document to PDF.


However, it does not explain how to convert an HTML file that contains images to PDF. Do the images have to be uploaded to Storage in the same folder as the HTML file? Is there an example of how to do this available anywhere?


This example is close. Do I just need to upload the images also?


https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-python/blob/master/test/pdf_tests.py#L2923

Hi David,

Thank you for your inquiry and sharing details.

I am afraid currently Aspose.Pdf for Cloud API does not provide “Convert HTML with images to PDF” functionality. I have logged an enhancement ticket in our issue tracking system as PDFCLOUD-48. We will further look into the details of this enhancement and will keep you updated on the status of its implementation.

Currently create PDF from HTML feature only work with HTML without images.

You will be notified via this forum thread once this feature is added in our new release.

If you have any further questions, please feel free to share.

Thanks,

Naeem Akram
Aspose - File Format APIs.

Got a Complaint? File it!

Keep in touch! We’re on Twitter and Facebook

I just tried to convert html to PDF with images. No dice. Is there any progress on this feature request ? Thanks.

@timn4c,

Thanks for contacting support.

I am afraid the earlier logged feature request is not yet implemented. The product team will start investigating this requirement as per their schedule and as soon as we have some definite updates regarding its implementation, we will let you know.

We are sorry for this delay and inconvenience.

@timn4c

Thanks for your patience. Please note now Aspose.PDF Cloud supports to convert HTML with images to PDF. The Images should be referenced with http/https url or with a relative path. In later case images should be uploaded to the same folder as the html file.