[GH-ISSUE #403] Print email / Print thread / Save to PDF #334

Open
opened 2026-02-25 21:34:46 +03:00 by kerem · 3 comments
Owner

Originally created by @marclaporte on GitHub (May 21, 2020).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/403

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.

Originally created by @marclaporte on GitHub (May 21, 2020). Original GitHub issue: https://github.com/cypht-org/cypht/issues/403 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.
Author
Owner

@dumblob commented on GitHub (May 22, 2020):

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.

<!-- gh-comment-id:632678780 --> @dumblob commented on GitHub (May 22, 2020): 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.
Author
Owner

@jasonmunro commented on GitHub (Jun 10, 2020):

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)

<!-- gh-comment-id:642131305 --> @jasonmunro commented on GitHub (Jun 10, 2020): 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)
Author
Owner

@PaulTGG commented on GitHub (Jan 10, 2024):

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

<!-- gh-comment-id:1884216923 --> @PaulTGG commented on GitHub (Jan 10, 2024): 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.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#334
No description provided.