I have to include an image (map) into a PDF file in Python3.
I get the image from google static map API, using an URL like this one:
http://maps.google.com/maps/api/staticmap?zoom=12&size=300x300&markers=46.75165,6.98996&sensor=false
The Image function of PyPDF
pdf.image(name, x=None, y=None, w=0, h=0, type='PNG', link='')
Give me this error:
RuntimeError: FPDF error: Not a PNG file: http://maps.google.com/maps/api/staticmap?zoom=12&size=300x300&markers=&sensor=false
I think it's beacause of the image dosen't have any extension?
Any other way? Idea?
Thanks.