Export Pages to PDF
planned
t
tzrajesh7@gmail.com
https://github.com/raje-sh/wikijs-pdf-exporter
C
Christelle Bouquet
I actually use Pandoc https://pandoc.org/ with a custom lua filter file, and a customized eisvogel latex template (https://github.com/Wandmalfarbe/pandoc-latex-template) on my Debian server to export all my wanted wikijs Markdown pages to a big pdf documentation book. It was not so easy to customize to our flavor, but that work very well now.
I only need to enter the command line in the server console when I need to generate or update the doc.
Perhaps someone can find a way to do something like that via wikijs interface ?
Oliver
Nicolas Giard any possibility that we could throw some sponsorship against this feature? It would be good in particular to be able to export an entire document "tree" into a single pdf for customer documentation.
Nicolas Giard
planned
J
Jeff Turner
Nicolas Giard: I see this was marked as planned two years ago. Is this possible now?
Mario Martínez
Really interesting feature! It would maintain the document navigation menu, the hyperlinks and useful metainformation about the doc, creator, etc...
Lachlan Newman
I would really love this feature for wiki.js. would be great to be able to satify the old men i work for.
J
John
I think this is an important feature and should be considered separately to just printing the page and saving as a PDF.
I regularly want to share articles from my personal wiki with colleagues and the browser print dialog doesn't format them well enough.
As a quickfix, I open up the Markdown file with an external editor like Typora/iA Writer/Macdown and manually do the export there before sharing but it would be great to be able to do this from within Wiki.js
mike webster
I would like to vote for this feature for the backlog. First off, I am a Big fan of wikijs and certainly appreciate all the hard work into updates and releases. A use-case I have at the moment is to export all the content to show a preview offline. This happens often in my domain. Ok, I just wanted to share my use-case and feedback for consideration.
Cristian Perez
Any updates with this? It's a necessary feature I think
Nicolas Giard
Cristian Perez: https://docs.requarks.io/releases/about
Not to mention that feature is built-in in your browser... CTRL-P -> Save as PDF...
J
Jørgen
Nicolas Giard: Hi Nicolas. First of all, thank you for all your effort to create a great wiki! I fully understand that it is nearly impossible for you to give a accurate answer to the question above. I see that the requested feature is listed in 3.X, and I am just curious about approximately when you imagine it will be in an update: is it possible to expect it in a year for now, or do you expect it to take more time?
Michael Witten
Nicolas Giard: The issue with this is you get the entire page (with menu's etc). A lot of the time when someone wants to export to PDF, they just want the page content. Note that I have not had much experience with wiki.js (just looking for one at the moment and this is our top option, but need this feature) or node.js (my background is in PHP, have done a pdf export in Symfony before).
I see 2 options to get around this:
Option 1 (easiest): Have a button that opens just the content. So basically show the page without all menu's, headers and footers etc. Then the user could choose to print and it would be a pretty neat pdf, though you are still bound to how your browser outputs it.
Option 2 (harder but better option): Use a library either directly in node.js (eg. https://www.geeksforgeeks.org/how-to-create-pdf-document-in-node-js/) to export to pdf from database items, or using a node.js library to export html to pdf (eg. https://blog.risingstack.com/pdf-from-html-node-js-puppeteer/).
For what we are going to use wiki.js for we need to output documentation that can be sent out in a pdf and want it to look neat, but then be able to access it all in the wiki as well (and easily edit it).
At the moment I am spending my time getting systems like the wiki up and running (not getting paid for the work, so have limited time), but down the track could look further into this if I can learn some node.js.
J
Jambu Atchison
Nicolas Giard I hope this is still a planned feature. I've tried the browser print to PDF and it works if there are no code blocks. Unfortunately using the browser print, the code blocks don't word wrap and end up showing a left-right scrollbar with the longer commands cut off
K
Konstantinos
may also be useful to export pages to HTML so that once it becomes read only it can be placed to something like AWS S3 as a static wiki
Load More
→