jiffyclub / html-css-resume-template

A resume template based on HTML5 and CSS
65 stars 38 forks source link

How to make html to pdf #1

Open perfectfoolish opened 10 years ago

perfectfoolish commented 10 years ago

I don't know how to make html to pdf

jiffyclub commented 10 years ago

I'm on a Mac so I use Safari and use the Print -> Save as PDF feature:

screen shot 2014-05-06 at 8 38 58 am

(I use Safari because it seems to save text in a more machine readable format than Chrome.)

On other types of systems I'm not sure what to do, but I think some searching on the web could probably find some help.

TomAugspurger commented 10 years ago

I'm doing the same as @jiffyclub and removing the header and footer that Safari adds with PDFPen by hand (not a great solution).

There's pandoc, but I haven't been able to get the styling to work correctly.

There's also http://wkhtmltopdf.org, which you may have more luck with.

ananelson commented 10 years ago

I use casperjs/phantomjs for this. You can generate PDF images from HTML with it, and it can be automated.

perfectfoolish commented 10 years ago

Thanks for @jiffyclub @TomAugspurger @ananelson , I get it and will have a try.

hasukmistry commented 4 years ago

Hey, @perfectfoolish you may use media queries to achieve that. I have done it in my repository, please have a look here: https://github.com/hasukmistry/html-cv-to-pdf