Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to make html to pdf #1

Open
perfectfoolish opened this issue May 6, 2014 · 5 comments
Open

How to make html to pdf #1

perfectfoolish opened this issue May 6, 2014 · 5 comments

Comments

@perfectfoolish
Copy link

I don't know how to make html to pdf

@jiffyclub
Copy link
Owner

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
Copy link

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
Copy link

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

@perfectfoolish
Copy link
Author

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

@hasukmistry
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants