Emanuel Fontelles
Emanuel Fontelles

Reputation: 906

Can I convert GitHub pages with Jekyll to pdf?

I have an GitHub page that contains my vitae. Github renders the Jekyll page to HTML produces the website https://emanuelfontelles.github.io/cv/.

How can I convert this webpage to pdf using pandoc or even Jekyll?

Upvotes: 3

Views: 5362

Answers (1)

mb21
mb21

Reputation: 39528

See http://pandoc.org/MANUAL.html#creating-a-pdf, thus for example:

pandoc https://emanuelfontelles.github.io/cv/ -f html-native_divs -o cv.pdf --pdf-engine=xelatex

The -native_divs is necessary to disable parsing of divs. Because pandoc looks out for the columns class, which is sometimes used for beamer slideshows...

Or if you don't like LaTeX:

wkhtmltopdf https://emanuelfontelles.github.io/cv/ cv.pdf

Or if you would like to use a different stylesheet:

pandoc -o cv.pdf --pdf-engine=wkhtmltopdf --css myprintstyles.css https://emanuelfontelles.github.io/cv/

Upvotes: 5

Related Questions