-
Notifications
You must be signed in to change notification settings - Fork 91
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
Support printing notes (first print CSS, then export to PDF) #112
Comments
@juliushaertl what do you think? Does this require some PDF generation library? Another thing we can do is look at a proper print stylesheet which hides the top bar and adjusts some other things. @rkaraba would that solve the problem? |
Maybe we can use https://github.com/MrRio/jsPDF to build the pdf file, but that needs a deeper look. I agree that a proper print sylesheet work actually be a good first step. |
@jancborchardt |
I already worked with jsPDF before. It's very easy to use, well documented and performant. |
@nicostuhlfauth cool, do you want to help implement this? :) @juliushaertl maybe also helpful: for the Mail app @sourenaraya implemented a print stylesheet, and PDF export can then be done through the browsers/OS own "Print as PDF" functionality: nextcloud/mail#1804 |
Did not make it for 18 |
Is this still on your radar? Printing would be excellent, printing to pdf is (IMO) secondary. |
@Jab2870 yes, are you interested in contributing a fix? See nextcloud/mail#1804 where @sourenaraya implemented a print stylesheet for the Mail app. This could be done just the same here. :) |
Hi, just wanted to add that I encountered this issue today when attempting to print my markdown document. I could not a find working md-to-pdf or print from md feature within nextCloud that actually worked and I was not able to get the pdf flow working either. just wanted to thank you in advance for making this possible and keeping the beautiful css of nextCloud while printing. Thanks! |
Hello ! It'd be very helpful to be able to print or export as pdf notes. I see the discussion here stopped a while ago. Is there any chance we see that feature shipped at some point please? 🙏 |
In NextCloud, notes are stored as - and therefore also accessible as - regular files. To print a note before this issue is solved, without having to copy + paste it to some application manually, you could download the file from the file browser, or open it from your NextCloud client, and print it using your text editor. |
Sure, this is I do at the moment. Thanks for pointing out that solution but it's also important to realize this is not as trivial is it sounds for many users (no opinion here, just what I observe). |
When text files / notes are in markdown *.md format, keep in mind most users don't have a MarkDown-compatible text editor installed locally, so printing outside the nextcloud web app isn't necessarily an easy workaround. |
Sadly this feature does not exist on mobile browsers (firefox mobile removed that feature one or two years ago). |
They are working on a successor IIRC. |
Currently printing will include the menubar and longer text files will be cropped after the first page. This enabled printing of text documents without any big styling changes, slightly adjusted margins and add table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
Currently printing will include the menu bar and longer text files will be cropped after the first page. This enables printing of text documents without any major styling changes, slightly adjusted margins and added table borders. This implements the CSS part of #112 Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux @vinicius73 |
Can you open a new issue for this please? |
Done, see #4536 |
Is this still being worked on? Cannot see a workaround - copying the contents to Word works for the text but the images do not show up. Printing does not work beyond the first 1.5 pages. And there is no export or convert button to be found. Confused and feels like .md files are a lock in right now. |
Hi there, if it may help meanwhile for those in need to convert their notes in PDF in order to print them (or simply share them with other people through another medium) : here the best tool I found (after many tries) which let you convert md to great pdf : https://md-to-pdf.fly.dev/ It let you choose between different conversion engines and even customize CSS. ✨ |
Please add PDF export because people sometimes need print their notes.
The text was updated successfully, but these errors were encountered: