Hi,
I want to do something like this. The base64 is derived from calling canvas.toDataURL() in Javascript, then passed to my PDF app.
image = "data:image/png;base64,iVBORw0KGg..." (clipped here, not in my actual code)
Prawn::Document.generate(tmp) do |pdf|
pdf.image open(image)
end
I get "file is an unrecognised format" errors.
Any ideas or samples? I've searched far and wide with no good hits. I'd prefer not having to write the images to disk.
Thanks,
Dave