Javascript: PDF export button for webpage -


i pointers or resources can java-script allows export button on site export current page pdf.

i think there no javascript library allow create pdf file. mozilla implemented complete pdf reader in js , includes in latest firefox, huge library. edit: there jspdf seems able that.

i think should go server side pdf engine.

dompdf php library allows render complete html css, images etc pdf document. has example php script put on server allows convert submited html pdf.

your javascript "button" should document.getelementsbytagname('html')[0].innerhtml , post html dompdf script. should more or less correct pdf out of this.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -