Bug 478276

Summary: Wrong paper color until zoom when overprint preview enabled
Product: [Applications] okular Reporter: nathan
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, ervin
Priority: NOR    
Version: 23.08.3   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot of wrong paper color
Screenshot showing correct paper color after zooming
Example PDF

Description nathan 2023-12-08 17:43:46 UTC
Created attachment 164016 [details]
Screenshot of wrong paper color

SUMMARY
On some PDFs, the paper color appears black until you zoom in and out again.

STEPS TO REPRODUCE
1. Open PDF
2. Observe incorrect paper color
3. Zoom 
4. Observe correct paper color

Operating System: EndeavourOS 
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.112.0
Qt Version: 5.15.11
Kernel Version: 6.6.4-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 nathan 2023-12-08 17:44:11 UTC
Created attachment 164017 [details]
Screenshot showing correct paper color after zooming
Comment 2 nathan 2023-12-08 17:44:31 UTC
Created attachment 164018 [details]
Example PDF
Comment 3 Albert Astals Cid 2023-12-09 00:41:41 UTC
Can't reproduce, do you have some non standard setup either in Plasma or in okular accessiblitt settings that could be interferring here?
Comment 4 nathan 2023-12-10 20:15:22 UTC
(In reply to Albert Astals Cid from comment #3)
> Can't reproduce, do you have some non standard setup either in Plasma or in
> okular accessiblitt settings that could be interferring here?

No, not as far as I'm aware. Accessibility settings are default, and I'm using plain-old Breeze Dark. Maybe worth mentioning that I do use color management in plasma settings to apply a profile - I don't know if that's relevant?
Comment 5 Albert Astals Cid 2023-12-10 21:45:40 UTC
ok, needs someone that can reproduce the issue and then they can fix it
Comment 6 nathan 2024-01-17 00:04:08 UTC
(In reply to Albert Astals Cid from comment #5)
> ok, needs someone that can reproduce the issue and then they can fix it

Do you have any recommendations as to how I could begin to try to isolate the issue? I'm not seeing anything when opening via the terminal.
Comment 7 nathan 2024-01-17 00:16:17 UTC
(In reply to nathan from comment #6)
> (In reply to Albert Astals Cid from comment #5)
> > ok, needs someone that can reproduce the issue and then they can fix it
> 
> Do you have any recommendations as to how I could begin to try to isolate
> the issue? I'm not seeing anything when opening via the terminal.

Actually, I think I've got it. The issue only occurs when ~/.config/okular-generator-popplerrc contains: 

OverprintPreviewEnabled=true

Which is a shame because overprint preview is quite important for me.
Comment 8 Albert Astals Cid 2024-01-25 22:16:28 UTC
Kevin, an overprint preview bug, maybe you can have a look?
Comment 9 Kevin Ottens 2024-01-31 18:13:20 UTC
I can indeed confirm it. Now I don't have much bandwidth at the moment, so don't hold your breath... in any case, at first glance, it looks like it might be something in Poppler/Qt rather than Okular itself.