Javascript to create a PDF from PNG images and text?
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 con开发者_开发知识库verting text and lines into a PDF, but I cant figure out how I can also embed a PNG into the resulting PDF.
addImage(imageData, format, x, y, w, h) but pdf.js currently has a empty implementation, so it's not working yet.
精彩评论