hearsid / ng-html-to-pdf-save

Save HTML as pdf file on the browser with angularjs .
28 stars 35 forks source link

Only works on simple elements? #21

Open plantsmiles opened 7 years ago

plantsmiles commented 7 years ago

First, on safari it generates blank page only. Chrome/Firefox it generates .... something but its not very good looking. Page is all messed up in terms of columns/images/text all over the place.

Simple stuff like the demo, which is only text works ok.

No worries though, thanks for putting this together! Pretty cool idea.

toddhd commented 6 years ago

I found the same thing. I just tried to turn a simple table element into a PDF, and for some reason, all I got was the last column of the table.

vimes1984 commented 6 years ago

I found this librabry was falling apart, I wrote a simple GIST to suit my needs: https://gist.github.com/vimes1984/b6557f2b48fef3a6b6cbe6e30876cebf I hope it helps someone that stumbles across this... It will do HTML-> PNG -> PDF.