Export whole books / chapters #156

Closed
opened 2026-02-04 17:19:07 +03:00 by OVERLORD · 11 comments
Owner

Originally created by @ghost on GitHub (Sep 2, 2016).

Hey, I was wondering if it's possible to add a feature to export the whole book / some chapters?

Originally created by @ghost on GitHub (Sep 2, 2016). Hey, I was wondering if it's possible to add a feature to export the whole book / some chapters?
OVERLORD added the 🛠️ Enhancement label 2026-02-04 17:19:07 +03:00
Author
Owner

@mayrmartin commented on GitHub (Sep 12, 2016):

For me as Student it would be a great feature!
So +1

@mayrmartin commented on GitHub (Sep 12, 2016): For me as Student it would be a great feature! So +1
Author
Owner

@davidPilkington commented on GitHub (Sep 13, 2016):

This would be a great feature, it would allow us to keep one set of printable documentation for our clients.

@davidPilkington commented on GitHub (Sep 13, 2016): This would be a great feature, it would allow us to keep one set of printable documentation for our clients.
Author
Owner

@mayrmartin commented on GitHub (Sep 20, 2016):

Any idea if/when this feature might see the light of day?

@mayrmartin commented on GitHub (Sep 20, 2016): Any idea if/when this feature might see the light of day?
Author
Owner

@ssddanbrown commented on GitHub (Sep 20, 2016):

@mayrmartin 😄

What exports formats we thinking for this then?

Zip of HTML/Text files? Something else?

@ssddanbrown commented on GitHub (Sep 20, 2016): @mayrmartin :smile: What exports formats we thinking for this then? Zip of HTML/Text files? Something else?
Author
Owner

@msander commented on GitHub (Sep 20, 2016):

A single PDF would be nice

@msander commented on GitHub (Sep 20, 2016): A single PDF would be nice
Author
Owner

@mayrmartin commented on GitHub (Sep 20, 2016):

A single HTML file would be perfect for me...so I could convert it to a E-Book.

@mayrmartin commented on GitHub (Sep 20, 2016): A single HTML file would be perfect for me...so I could convert it to a E-Book.
Author
Owner

@mayrmartin commented on GitHub (Sep 20, 2016):

But also a single PDF file would be nice.

@mayrmartin commented on GitHub (Sep 20, 2016): But also a single PDF file would be nice.
Author
Owner

@ginal commented on GitHub (Sep 20, 2016):

Also a zip archive of markdown files would allow to extract the content and keep it versioned in git. Interfacing with a git repo would be a killer feature.

Great project!

@ginal commented on GitHub (Sep 20, 2016): Also a zip archive of markdown files would allow to extract the content and keep it versioned in git. Interfacing with a git repo would be a killer feature. Great project!
Author
Owner

@jeffreywyman commented on GitHub (Nov 8, 2016):

Would also love "export ALL" feature. I don't care about pdf/html/md. Any one would be good.

@jeffreywyman commented on GitHub (Nov 8, 2016): Would also love "export ALL" feature. I don't care about pdf/html/md. Any one would be good.
Author
Owner

@lommes commented on GitHub (Jan 6, 2017):

I created a command to export a whole book to pdf. It is pretty dirty and not production-ready but works for what I needed it for. Maybe it helps somebody. Due to changes on master it only works with current release branch.

After loading in Kernel.php you may call php artisan book:export <bookslug>, where <bookslug> has to be replaced with the slug of the desired book. This will create a bookslug.pdf in BookStacks root directory.

@lommes commented on GitHub (Jan 6, 2017): I created a [command ](https://gist.github.com/lommes/5e0a02169346499128182fbe898e0057) to export a whole book to pdf. It is pretty dirty and not production-ready but works for what I needed it for. Maybe it helps somebody. Due to changes on master it only works with current release branch. After loading in Kernel.php you may call `php artisan book:export <bookslug>`, where `<bookslug>` has to be replaced with the slug of the desired book. This will create a bookslug.pdf in BookStacks root directory.
Author
Owner

@ssddanbrown commented on GitHub (Feb 26, 2017):

Okay, I've now created chapter/book export options based on the page exports that were available (PDF/HTML/TXT). This will be in the next release (v0.15) which I'm hoping to send out in the next day or two.

For other export options or other export improvements please open a new, specific issue.

Thanks @lommes for sharing that script to tide people over.

@ssddanbrown commented on GitHub (Feb 26, 2017): Okay, I've now created chapter/book export options based on the page exports that were available (PDF/HTML/TXT). This will be in the next release (v0.15) which I'm hoping to send out in the next day or two. For other export options or other export improvements please open a new, specific issue. Thanks @lommes for sharing that script to tide people over.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#156