-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Exporting to PDF and ePub #815
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
Comments
I found https://github.com/lise-henry/crowbook. It might be worth it to take a look and integrate it (I'm not Rust developer). Also, that was my first google search result, there might be better tools/libraries. |
A while back I created an alternate backend for generating EPUB documents and published it on crates.io. It's pretty rough around the corners and doesn't do any styling, but I'd be happy to help mentor people if they want to take over development.
|
Would be nice to have! I heard some people migrating from mdBook to another solutions, some proprietary exactly because of the missing export to PDF. |
I'm not too involved in |
There is also mdproof for generating PDFs from Markdown files. Maybe it can be integrated with mdBook? |
I'm currently working on Here is The Rust Programming Language PDF and LaTeX files generated by
On my Thinkpad x220, it took I'm very new to Rust (and programming in general), so there are a lot of things that can be improved upon (and a better alternative PDF exporter is almost certainly possible!). Pull requests, forks, and plain old copy-pasting are actively encouraged! There is also a roadmap to the stable release for For anyone else looking to making a PDF or LaTeX mdbook backend, mdbook-epub and crowbook are two programs that are super helpful for learning how to parse markdown or write a proper backend. The mdbook User Guide has a terrific section regarding that as well! |
+100500 for Tectonic. They seem to improve based on arXiv dataset testing, along with better integration with texlab. |
That's awesome! I'll check out mdproof as well, It would be great to have the option to skip any LaTeX dependencies if you wanted a quick and simple PDF. |
Note, there is ongoing effort to Oxidize the Tectonic, and ditch legacy C code out of its engine. After this is done, probably better integration will be possible. |
That's a feature I'd definitely love to see. Currently I'm using R's Bookdown and blogdown to author books and blogs. I wish there will be similar implementations of these packages in Rust. I'm current learning Rust, and I hope I can contribute to this feature (probably in the summer when I have a good understanding of Rust). |
This is a duplicate of #88 (Support ebooks and pdf export) |
How is progress? I'm waiting for it. |
@lbeckman314 I would want to donate for your efforts, and I think many others as well. Could you please setup a an account for that? GitHub Sponsors, OpenCollective, etc |
Since there is zero interest to support that in mdBook, I recommend a relatively new framework to create books, more flexible that commonly known Bookdown - Quarto. It's pandoc-based, thus can export to basically anything. You can see their gallery for samples how such different formats and exports look like. It's quite actively developed as well. |
Hi all! I just created a mdBook backend named mdbook-pdf for generating PDF based on headless chrome and Chrome DevTools Protocol Page.printToPDF. It depends on Google Chrome / Microsoft Edge / Chromium. The generated page are pretty much alike the one you manually printed to PDF in your browser by opening |
PDF format with Table of Contents is needed. |
mdbook-pdf now supports Table of Content, see: HollowMan6/mdbook-pdf#1 (comment) |
I just released If you want more control, you may be interested in the other 2 projects I just released:
![]() |
I built |
Given that there are already plugins for both epub and pdf generation I think this issue could be closed. |
Does
mdBook
support exporting to PDF and ePub? If not, then this is a feature request/suggestion, otherwise documentation request/suggestion.The text was updated successfully, but these errors were encountered: