Bug 469420 - Print to PDF results in reports with "grayed out" sections, unlike in the past.
Summary: Print to PDF results in reports with "grayed out" sections, unlike in the past.
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-06 16:37 UTC by whelanh
Modified: 2023-06-07 03:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Example Income report showing grayed out sections (55.31 KB, application/pdf)
2023-05-06 16:37 UTC, whelanh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description whelanh 2023-05-06 16:37:59 UTC
Created attachment 158741 [details]
Example Income report showing grayed out sections

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.  Use the Kmymoney "Print" button to print a report (e.g., Income Statement or Transaction Report) to PDF
2.  Open the report and look at it.
3. 

OBSERVED RESULT
Report lines appear "grayed out" whether you print to PDF color or grayscale.  This is a change in behavior.  I've tried this on two separate computers (one a Manjaro system and the other one is a Garuda system).  See attached example.

EXPECTED RESULT
A clear, readable report as in prior versions.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:  
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9

ADDITIONAL INFORMATION
Example output attached
Comment 1 Jack 2023-05-07 22:03:44 UTC
First, please state which OS or Distribution you are using.  
When you print to PDF from other applications, is the result OK, or do you see a similar problem?  I cannot replicate this issue - when I print a report to PDF, it looks like I would expect.
What the example looks like is that it is using extremely light colored fonts, which are almost unreadable due to lack of contrast.  However, looking into the pdf file, it appears that it is all an image, there is no actual text present.  Note that opening the file in Okular, you cannot select any text - because there is not.  This makes me wonder if there is something odd about your installed printing software.  Can you try printing from another KDE application?  It it has the same problem, we know it is not specific to KMyMoney, but something deeper in the system.
Comment 2 whelanh 2023-05-07 23:55:52 UTC
(In reply to Jack from comment #1)
> First, please state which OS or Distribution you are using.  
> When you print to PDF from other applications, is the result OK, or do you
> see a similar problem?  I cannot replicate this issue - when I print a
> report to PDF, it looks like I would expect.
> What the example looks like is that it is using extremely light colored
> fonts, which are almost unreadable due to lack of contrast.  However,
> looking into the pdf file, it appears that it is all an image, there is no
> actual text present.  Note that opening the file in Okular, you cannot
> select any text - because there is not.  This makes me wonder if there is
> something odd about your installed printing software.  Can you try printing
> from another KDE application?  It it has the same problem, we know it is not
> specific to KMyMoney, but something deeper in the system.

Thank you for your response. I did mention my OS(s) in my original report, but perhaps I put it in the wrong section (I put it in the OBSERVED RESULT section). I tried it on two different machines: one is a desktop running Manjaro linux and the other is a laptop running Garuda linux. These are both Arch derivatives.  I tried using the same "print to PDF" option in the KDE application Kate and had no similar problems.  From Kate, the PDF file was clear (including fonts of various colors).  You mention that you think the fonts in the Kmymoney report are light colored and thus unreadable.  I think it may have something to do with the colored backgrounds in the section where the fonts are unreadable. You will note in the file I attached that the fonts are very clear in the sections of the report where there is no colored background.
Comment 3 whelanh 2023-05-08 00:43:05 UTC
(In reply to whelanh from comment #2)
> (In reply to Jack from comment #1)
> > First, please state which OS or Distribution you are using.  
> > When you print to PDF from other applications, is the result OK, or do you
> > see a similar problem?  I cannot replicate this issue - when I print a
> > report to PDF, it looks like I would expect.
> > What the example looks like is that it is using extremely light colored
> > fonts, which are almost unreadable due to lack of contrast.  However,
> > looking into the pdf file, it appears that it is all an image, there is no
> > actual text present.  Note that opening the file in Okular, you cannot
> > select any text - because there is not.  This makes me wonder if there is
> > something odd about your installed printing software.  Can you try printing
> > from another KDE application?  It it has the same problem, we know it is not
> > specific to KMyMoney, but something deeper in the system.
> 
> Thank you for your response. I did mention my OS(s) in my original report,
> but perhaps I put it in the wrong section (I put it in the OBSERVED RESULT
> section). I tried it on two different machines: one is a desktop running
> Manjaro linux and the other is a laptop running Garuda linux. These are both
> Arch derivatives.  I tried using the same "print to PDF" option in the KDE
> application Kate and had no similar problems.  From Kate, the PDF file was
> clear (including fonts of various colors).  You mention that you think the
> fonts in the Kmymoney report are light colored and thus unreadable.  I think
> it may have something to do with the colored backgrounds in the section
> where the fonts are unreadable. You will note in the file I attached that
> the fonts are very clear in the sections of the report where there is no
> colored background.

I also tried Kmymoney 5.1.3 on a Windows 11 virtual machine (from my Manjaro system) and it produced the PDF reports without any problem. So perhaps this is specific to how Kmymoney was compiled for the  Manjaro and Garuda community repositories.
Comment 4 Thomas Baumgart 2023-05-08 13:23:50 UTC
Please do not contain the original text when responding via e-mail. Simply start with a blank mail because otherwise it screws up the web display which we devs use. See for yourself e.g.  https://bugs.kde.org/show_bug.cgi?id=469420#c3 Thanks in advance.

To me this sounds like a CSS problem. The reports are rendered using HTML and should use different instructions when printing to the display and the printer. Since that is not working properly, it could well be a packaging problem. Can you try to use an AppImage version of KMyMoney and see if that has the same problem? You can find instructions at  https://kmymoney.org/appimage.html and the download at https://binary-factory.kde.org/view/AppImage/job/KMyMoney_Release_appimage-centos7/ (don't worry about the centos7 part, it's just a name). The AppImage can be installed alongside your distro version without problems.
Comment 5 Bug Janitor Service 2023-05-23 03:45:48 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-06-07 03:45:35 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!