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

can pdf output use pdf image files instead? #190

Closed
stevepowell99 opened this issue Apr 30, 2014 · 9 comments
Closed

can pdf output use pdf image files instead? #190

stevepowell99 opened this issue Apr 30, 2014 · 9 comments

Comments

@stevepowell99
Copy link

one of the great things about using markdown via pandoc is the ability to include vector graphics in pdf or similar format rather than pngs or jpgs. I produce a lot of techinical graphs and the user usually wants to enlarge them onscreen, but in the gitbook-produced pdf they would just get big pixels.
Is there any way to incorporate vector graphics in gitbook?

@erixtekila
Copy link

inline SVG are not included while building ? Like HTML.

@erixtekila
Copy link

I've tested and inline SVG works great in html output.

@stevepowell99
Copy link
Author

Thanks - ah, so if I can produce my graphics in .svg format, they will appear as such in the HTML and in PDF? that would be great.

@SamyPesse
Copy link
Member

PDF is generated using: markdown -> single html page -> phantomJS (which is running webkit like chrome) -> print like a google chrome -> PDF

So everything that render great on a webpage in chrome to pdf will render great here.

@erixtekila
Copy link

@SamyPesse Na.
gitbook build -f pdfhang for ever !
Can't phantomjs render svg ?

@stevepowell99
Copy link
Author

thanks both for quick responses! You are right, svg works like a dream in
both html and pdf.

Best Wishes
Steve Powell


Currently consultant to IFRC to develop an Evaluation Framework for Haiti<
http://goo.gl/1JW4O>

skype stevepowell99 | +387 61 215 997 | www.socialdatablog.com

On Wed, Apr 30, 2014 at 6:29 PM, Samy Pessé notifications@git.luolix.topwrote:

PDF is generated using: markdown -> single html page -> phantomJS (which
is running webkit like chrome) -> print like a google chrome -> PDF

So everything that render great on a webpage in chrome to pdf will render
great here.


Reply to this email directly or view it on GitHubhttps://github.com//issues/190#issuecomment-41818013
.

@erixtekila
Copy link

Sure ? I can't get to build it in pdf.

@SamyPesse
Copy link
Member

Can you test with the latest version of gitbook (new tool for generating a pdf).

@SamyPesse SamyPesse mentioned this issue Jan 28, 2015
35 tasks
@SamyPesse
Copy link
Member

This issue will be fixed in the 2.0.0 release (#562).

Nyar233 pushed a commit to Nyar233/gitbook that referenced this issue May 12, 2024
* Start

* Add failing test

* Better handle nested tokens

* Run tests in CI

* Comment

* Fix another case
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

3 participants