Bug 499758

Summary: An Image Cycling Form Doesn't Properly Replace Images
Product: [Applications] okular Reporter: T. H. Wright <thwright>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 24.12.1   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: An example of the open file after hitting show forms
An example of the open file after hitting the click form

Description T. H. Wright 2025-02-10 13:26:09 UTC
Created attachment 178111 [details]
An example of the open file after hitting show forms

SUMMARY

At the following website, various PDFs are made available, many for free. These PDFs have PNG (?) images stored in them that can be cycled to adjust the color scheme of the images.

https://printableheroes.com/

When hitting the cycle button/form, the image attempts to change but does not properly replace the previous image. Instead it seems to paste the next image on top of the previous image. 

STEPS TO REPRODUCE

1. An example download link can be found here in the top right corner: https://printableheroes.com/minis/492 I attempted to copy the download link but it appears not to work independently of the website.
2. Open the PDF in Okular
3. Turn on Show Forms
4. Attempt to click the "click to cycle" or "click to select a base" button.
5. After the first click, the image will appear stuck and duplicated.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 T. H. Wright 2025-02-10 13:32:23 UTC
Created attachment 178112 [details]
An example of the open file after hitting the click form

Accidentally hit enter. Other info:

EXPECTED RESULT

I am expecting the initial image to disappear from the PDF and the new image to replace it. A second click of the button I am expecting to either cycle to the next image or back to the first image, properly replacing the previous one in the cycle.

SOFTWARE/OS VERSIONS

This is on Manjaro Linux
Plasmashell 6.2.5
KDE Frameworks 6.10.0
Qt 6.8.1-1
Okular 24.12.1