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

PDF printable? #173

Open
TomCools opened this issue Nov 29, 2018 · 2 comments
Open

PDF printable? #173

TomCools opened this issue Nov 29, 2018 · 2 comments

Comments

@TomCools
Copy link

Whould it be possible to add styling so this Hugo template also generates decent looking documentation in PDF form? Not all of our users will be able to be online all the time.

Kind regards,
Tom

@sharmay
Copy link

sharmay commented Dec 16, 2020

Nothing built-in, this is how I generate:

wkhtmltopdf \
  --margin-top 0.5in \
  --margin-bottom 0.5in \
  --margin-left 0.5in \
  --margin-right 0.5in \
  --page-size Letter \
  --no-background \
  --print-media-type \
  --footer-left "My Doc" \
  --footer-right "[page]/[toPage]" \
  http://localhost:1313/ \
  /tmp/my.pdf"

Some image / text may split across page but much better look/feel compare to pandoc in my opinion.

@arky
Copy link

arky commented Mar 11, 2021

I think implementing a ‘Export page as PDF’ button to export page as you see on most gitbook pages would be great. I believe it should be possible to implement it using something like paged.js

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

No branches or pull requests

4 participants