Hi, I spent a lot of time trying to figure out ways to embed images in pdf , I tried all sorts of stuff and hacks but stuck at this problem.
1.) I want to embed a google chart http://chart.apis.google.com/chart?cht=p3&chd=t:60,40&chs=250x100&chl=Hello|World 2.) hence I do: graphtoembed = urlfetch.fetch("http:// chart.apis.google.com/blah....blah") 3.) problem is, Reportlab's drawImage requires a file name to embed this image or can take ImageReader object (which in turn asks for localfile name in constructor) 4.) How should I pass image content read from urlfetch to reportlab while I am not allowed to dynamically create/store files in app engine? Even just for a test if I do this for static images, path = os.path.join(os.path.dirname(__file__), 'static/images/ test.gif') img_obj = ImageReader(path) canvas.drawImage(img_obj, 200,800) I get this Cannot open resource "/base/data/home/apps/onepageresume [blah....blah]" Please show me direction... The goal is simple , just to retrieve images from google charts and embed in a pdf... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---