Bug 480733 - Kmail 'Export to PDF' crops message
Summary: Kmail 'Export to PDF' crops message
Status: ASSIGNED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.24.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-02 12:56 UTC by Peter
Modified: 2024-03-25 07:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2024-02-02 12:56:59 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1.  Open a email that is more than one page long. 
2.  Select 'Export to PDF'

OBSERVED RESULT
The PDF file is missing message text at the bottom and top of each page, as if some of the message is being printed outside the 'print area'.  
A similar problem arises if the message is printed to PDF file.  The Margins in File.Print.Properties has a default value of 0.14in, but increasing this to 1.14in or decreasing it to zero does not seem to solve the problem.     

EXPECTED RESULT
The PDF file should show all of the message text, regardless of the margins.  

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  KDE Neon 5.27
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Laurent Montel 2024-02-03 10:41:41 UTC
I don't see bug.
Perhaps you can send me a message which has this problem.
We use qtwebengine for exporting to pdf
=> if there is a bug it's a qtwebengine bug
Comment 2 Laurent Montel 2024-02-03 10:44:54 UTC
I confirm it
Comment 3 Peter 2024-02-14 11:17:13 UTC
Laurent, 
Apologies for not seeing your messages earlier.  Do I understand you have the information you need?  
Thanks and regards. P
Comment 4 Peter 2024-03-20 14:44:38 UTC
Hi Laurent, 
I don't know whether it's the same issue or something entirely different, but I also get the problem with 'Print' and 'Print Preview'.
I get it with kmail 6.0.0, too.  
Thanks and regards
Comment 5 Laurent Montel 2024-03-25 06:59:06 UTC
Git commit 0fd986f887655d73df3505c612856fd3d2430c58 by Laurent Montel.
Committed on 25/03/2024 at 06:58.
Pushed by mlaurent into branch 'release/24.02'.

Allow to change print layout when we export as pdf

M  +15   -1    webengineviewer/src/webengineexportpdfpagejob.cpp

https://invent.kde.org/pim/messagelib/-/commit/0fd986f887655d73df3505c612856fd3d2430c58
Comment 6 Laurent Montel 2024-03-25 07:13:39 UTC
Git commit ec07976365bce3707dd9c7f69a58d0b5b67fd0fd by Laurent Montel.
Committed on 25/03/2024 at 07:13.
Pushed by mlaurent into branch 'release/24.02'.

fix change layout when we print message

M  +10   -3    messageviewer/src/viewer/printmessage.cpp
M  +3    -2    messageviewer/src/viewer/printmessage.h

https://invent.kde.org/pim/messagelib/-/commit/ec07976365bce3707dd9c7f69a58d0b5b67fd0fd