Notes: CSS media query for printing style

Created on 22 Mar 2018  ·  7Comments  ·  Source: nextcloud/notes

At the moment the markdown format is lost when you're just left with txt files. It would be nice if there was an option to convert a Notes document into a PDF or directly call a window to send it to a printer. Thanks!

design enhancement editor good first issue

Most helpful comment

Just an idea: Instead of implementing the whole stuff ourselfs: What about a @media print stylesheet that creates a nice layout for printing. Nealry every browser (at least Chrome and Firefox on Linux) are able to save a PDF instead of actually printing in their print dialog?

All 7 comments

@AquaL1te do you know if such a Markdown-to-PDF library exists, ideally in Javascript (or PHP)? Any help in researching is welcome. :)

@jancborchardt, something like this? There are probably many more, this one was at the top of my Google search.

Seems like it requires Node, which we can’t require. Needs to be either PHP or JS. :)

@AquaL1te is from 2015, seems unmaintained and says »work in progress«. :\ But thank you for the effort in finding a library! :) That’s the first step.

Just an idea: Instead of implementing the whole stuff ourselfs: What about a @media print stylesheet that creates a nice layout for printing. Nealry every browser (at least Chrome and Firefox on Linux) are able to save a PDF instead of actually printing in their print dialog?

@stefan-niedermann right, that’s a great call! :) Would probably only need few rules to remove the header and notes list from view. :) Setting as good first issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bestouff picture bestouff  ·  7Comments

dclaisse picture dclaisse  ·  7Comments

CodeAlDente picture CodeAlDente  ·  3Comments

Tuxyso picture Tuxyso  ·  5Comments

Beta0815 picture Beta0815  ·  6Comments