cypht icon indicating copy to clipboard operation
cypht copied to clipboard

Print email / Print thread / Save to PDF

Open marclaporte opened this issue 5 years ago • 3 comments

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.

marclaporte avatar May 21 '20 14:05 marclaporte

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.

dumblob avatar May 22 '20 13:05 dumblob

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)

jasonmunro avatar Jun 10 '20 16:06 jasonmunro

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.)

PaulTGG avatar Jan 10 '24 05:01 PaulTGG