Enh/Improve email printing
Fix https://github.com/nextcloud/mail/issues/8866
TODO:
- [x] Add printing button
- [x] Implement printing iframe
- [x] Add additional information and styling
Current Issue:
Longer emails are cut and do not display multiple pages
I think a Print preview would be the easiest way around either a pop up or a new page. It would also solve the problem of big threads, Theoretically with this approach you would have to programatically expand all of them one by one and then print. Gmail solves this problem by opening a new page with adequate design and triggering the print event instantly
I think a Print preview would be the easiest way around either a pop up or a new page. It would also solve the problem of big threads, Theoretically with this approach you would have to programatically expand all of them one by one and then print. Gmail solves this problem by opening a new page with adequate design and triggering the print event instantly
@hamza221 I found a solution to be overlaying an iframe and inserting everything needed into it, tell me if you think it looks sane. I know it's hacky, but I believe anything at this point will be, and doing it like this doesn't require a new view.
Having said that, I'm open to any other less hacky solutions anyone might have
Here is what it currently looks like, and yes, there are multiple pages, they don't get cut off
I am not confident with the way this works. Building HTML by hand is scary. Why do we need this separate page? Can't we use the existing page and adjust the layout for print? E.g. do not limit the height of messages in the thread when printing so that everything is included, hide unwanted elements, etc.
I am not confident with the way this works. Building HTML by hand is scary. Why do we need this separate page? Can't we use the existing page and adjust the layout for print? E.g. do not limit the height of messages in the thread when printing so that everything is included, hide unwanted elements, etc.
We can also use the already existing IFrame but we can't include the sender's address...