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

GitBook PDF build output is not satisfactory #7

Open
lwchkg opened this issue Jul 4, 2017 · 5 comments
Open

GitBook PDF build output is not satisfactory #7

lwchkg opened this issue Jul 4, 2017 · 5 comments

Comments

@lwchkg
Copy link
Owner

lwchkg commented Jul 4, 2017

testing.pdf

@lwchkg lwchkg changed the title GitBook PDF build has ugly line numbers GitBook PDF build output is not satisfactory Jul 4, 2017
@lwchkg
Copy link
Owner Author

lwchkg commented Jul 4, 2017

Output of gitbook-pdfgen is satisfactory. This is potentially a Calibre related issue.

@chbndrhnns
Copy link

I see a white background in a PDF export when using the sunlight highlighter.
Can I do something about it?

screenshot 2017-09-19 11 58 20

@lwchkg
Copy link
Owner Author

lwchkg commented Sep 19, 2017

Just checked the epub output in https://www.gitbook.com/book/lwchkg/tests-of-sunlight-highlighter/details. The HTML there is indeed STRANGE (has class for plaintext but it is actually javascript). The only possibility is the intervention of Calibre, which is sadly out of the possibility to fix.

The default theme, however, appears less bad.

BTW, if all you want is some PDF output, why not to try https://www.npmjs.com/package/gitbook-pdfgen? The output of that CLI utility appears to be much nicer.

Anyway, if you're interested in gitbook-pdfgen, check https://github.com/lwchkg/vbnet_intro_book/tree/master/vbnet_intro_part2a to know how to customize the content page.

@chbndrhnns
Copy link

I gave it a try and noticed that the setting pdf.fontSize does not seem to be followed:

screenshot 2017-09-19 14 04 00

Any idea on that?

@lwchkg
Copy link
Owner Author

lwchkg commented Sep 19, 2017 via email

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

2 participants