Open marclaporte opened 4 years ago
Note, there has to be at least 2 print buttons - one for A4 and the other for B4 due to cultural differences in the world.
To clarify - normally this wouldn't be needed, but if today someone already prints something, then the "something" is more probable to have precise units which should be correctly printed instead of reflowed and/or scaled.
We already support CSS print for the message view. Our CSS removes a bunch of page components not needed for printing including the previous/next links. (https://github.com/jasonmunro/cypht/blob/master/modules/core/site.css#L256-L258)
I don't know enough about CSS print media styles, but if it'd be an option to allow printing inline messages, without printing the entire list of messages along with it, that'd be a bonus! (At first glance, it looks like all that's needed is to print the "inline_msg" \<tr> class.)
Use case: to save an email or thread to a self-contained and easy to distribute / archive file. So a print view using CSS, which users can save as PDF.
Previous and Next links should not be in print version. Ref: https://github.com/jasonmunro/cypht/issues/402
For threaded version, we'll first need this: https://github.com/jasonmunro/cypht/issues/10
Within Tiki, we'll send to https://doc.tiki.org/mPDF but that is likely out of scope for standalone Cypht.