rss

Apr
26

jsPDF: PDF documents using pure JavaScript

Posted (Amit) in Javascript on 26-04-2009

5

jsPDF is an open-source library for generating PDF documents using nothing but Javascript. You can use it in a Firefox extension, in Server Side Javascript and with Data URIs in some browsers.

See Demo

Client-side demo works best in Safari or iPhone Safari. Also works Firefox 3 on Windows and Opera. IE support on the way.
Server-side should work anywhere. Examples soon.

Share

Comments (5)

the Demo are not worked
Can you send me another demo, please ?

Amit

Hi, i am able to see the demo on windows machine but not on Mac.

but how could I insert images into PDF

doc.addImage(‘sm_01.jpg’, ‘jpg’, 50, 50, 86, 95);

above code is not working! Please help me

Amit

Hi Parvez,
The author(http://blog.jhall.me/) himself say that image will not work for this versions, however we can have workarounds for that.

Any progress in adding images? …. what are the workarounds alluded to?

Post a comment



Amit Yadav is Stephen Fry proof thanks to caching by WP Super Cache