0

Google Static Maps API allows PNG images files of a map to be made programatically (example PNG map).

Using only javascript and a browser, is there a way to embed the PNG map image into a PDF file, along with some text, that the user can download?

From this SO post I found this library pdf.js for converting text and lines into a PDF, but I cant figure out how I can also embed a PNG into the resulting PDF.

Community
  • 1
  • 1
b_dev
  • 2,568
  • 6
  • 34
  • 43
  • Javascript on a client machine is going to be Quite Limited in what it can do with PDF. Now if you were to do it server-side, you've got a broad range of PDF software to choose from. I suppose you could embed a Java applet and use one of the Java PDF libraries floating about *cough-iText-cough*. – Mark Storer Jan 28 '11 at 17:39

1 Answers1

0

addImage(imageData, format, x, y, w, h) but pdf.js currently has a empty implementation, so it's not working yet.

Gerben
  • 16,747
  • 6
  • 37
  • 56