Get a Free Trial
GrabzIt's Online Community

Passing base64 images from HTML to PDF

Ask questions on how to capture or convert web pages or HTML into images, MP4. CSV, PDF or DOCX documents as well on how to convert videos into animated GIF's using our API.

There are no forum posts on this topic! Why don't you write one?

A small base 64 image (e.g. a star) renders fine in the PDF. A larger one (a QR Code) does not show in the PDF, though it is fine in the browser HTML. Is there a built in limit to how long a data url can be? Thanks

Asked by anonymous on the 10th of February 2025

If you email support with the html in question we can have a look at it.

Answered by GrabzIt Support3 on the 10th of February 2025

After further investigation it appears that the parameters being sent to the REST API were not being URL encoded, so the HTML was not being properly read.

Answered by GrabzIt Support3 on the 10th of February 2025