hackmd-io-issues icon indicating copy to clipboard operation
hackmd-io-issues copied to clipboard

(Better) export to PDF

Open fvisin opened this issue 5 years ago • 5 comments

This is a continuation of https://github.com/hackmdio/codimd/issues/33.

There seem to be a number of issues requesting a better way to export notes to pdf. To the best of my understanding, currently exporting notes to pdf is only allowed in slide mode, and via an error-prone and not user-friendly procedure that involves modifying the URL manually. There has to be a better way.

Exporting to pdf is invaluable for a number of reasons: it's usually easier to read pdfs on mobile devices than web pages, it's much easier to print and can be accessed offline (e.g., on a plane). Can you please work on a way to do so that works in all modes (view, slide, book) and is user-friendly? Thank you!

fvisin avatar Feb 20 '20 17:02 fvisin

I really like TOC in PDF, too.

genofire avatar Mar 09 '20 14:03 genofire

This is indeed a needed feature. The pdf is easier for the general audience to highlight/comment too. I know Hackmd has its comment bubble, but not all people want to learn new things. Many people just work on Word and PDF is the most they can go.

timedreamer avatar Mar 29 '20 15:03 timedreamer

I will need this too. It will be very useful for using HackMD to do my assignments.

michaellee8 avatar Apr 08 '20 11:04 michaellee8

I think one of the issues is with puppeteer support. Firefox is actively working on implementing puppeteer but it is not currently feature complete: https://aslushnikov.github.io/ispuppeteerfirefoxready/

acestronautical avatar May 12 '20 02:05 acestronautical

Apparently, exporting to pdf is not yet supported (at least not documented at all, like anywhere). However, I've found some mentions where it looks like such a feature does exist: by appending /pdf to the url (so https://codimd.server/noteid/pdf) it is supposed to print a pdf (see hackmd api and codimd-cli). When I do that on my server, though, I get a 403 Forbidden oh no. page. So, is pdf export really implemented? If not, why both cli have that as a features? I've got to say that I'm really confused by this situation

MauroFoti avatar Oct 16 '20 23:10 MauroFoti