Bug 492358 - Values of some form fields are not shown in non-forms mode
Summary: Values of some form fields are not shown in non-forms mode
Status: CONFIRMED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 24.08.0
Platform: Neon Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-29 11:08 UTC by Malte S. Stretz
Modified: 2024-11-01 10:44 UTC (History)
2 users (show)

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


Attachments
PDF document with form (303.03 KB, application/pdf)
2024-08-29 11:08 UTC, Malte S. Stretz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2024-08-29 11:08:57 UTC
Created attachment 173082 [details]
PDF document with form

SUMMARY
I will attach a PDF document which has an embedded form. There are two "date" fields which can be filled out in "Show Forms" mode. When that mode is exited and/or the PDF is printed no value is displayed for these fields.

Saving the filled out document and opening it in Firefox (ie. pdf.js) shows the previously entered values.

STEPS TO REPRODUCE
1. Start Okular
2. Download the form from https://www.hamburg.de/resource/blob/35658/bf5a89315bba109b3a8664d1ed4adcb1/arbeitszeitennachweis-kindertagespflege-data.pdf or use the attached version
3. Click the "Show Forms" button to switch to edit mode
4. Type in some value for "Name des Kindes" 
5. Type in some date for "Geburtsdatum des Kindes". Like 01.01.1970
6. Leave the edit mode again by clicking "Show Forms"
7. Observe that the name will stay but the date will disappear (there is another date-like field "Beginn der Arbeit" which shows the same behaviour)
6. Save the file and close Okular
7. Open the file in Firefox
8. Observe that the values are filled out
9. I couldn't find an option to leave the edit mode there. But the value will stay visible in the print preview via Ctrl+P

OBSERVED RESULT
The values for those "date" fields disappear when the form edit mode is not active. Neither are they visible on a printout.

EXPECTED RESULT
The values should not disappear.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.8.0-40-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-6300U CPU @ 2.40GHz
Memory: 19,4 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 520
Manufacturer: LENOVO
Product Name: 20F9CTO1WW
System Version: ThinkPad T460s

ADDITIONAL INFORMATION
libpoppler-qt6-3 24.02.0-0xneon+22.04+jammy+release+build30
libpoppler134 24.02.0-0xneon+22.04+jammy+release+build30
Comment 1 Justin Zobel 2024-08-30 02:05:35 UTC
Can confirm with Okular 23.04.2.
Comment 2 Oliver Sander 2024-09-01 05:02:41 UTC
pdftoppm does not show the date either.  Is this rather a poppler bug, then?

pdftoppm prints

Syntax Error: Unknown font tag 'Helvetica'
Syntax Error (315229): No font in show

This may be where to start looking.
Comment 3 Oliver Sander 2024-11-01 10:44:15 UTC
I opened a corresponding poppler issue with some additional information at https://gitlab.freedesktop.org/poppler/poppler/-/issues/1529.  However, it is not clear at this point whether this is really a poppler problem.