[okular] [Bug 519407] New: (Default) Values in PDF Forms are not handled and displayed correctly for Textfields
bugzilla_noreply at kde.org
bugzilla_noreply at kde.org
Sat Apr 25 18:32:15 BST 2026
https://bugs.kde.org/show_bug.cgi?id=519407
Bug ID: 519407
Summary: (Default) Values in PDF Forms are not handled and
displayed correctly for Textfields
Classification: Applications
Product: okular
Version First 26.04.0
Reported In:
Platform: openSUSE
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: PDF backend
Assignee: okular-devel at kde.org
Reporter: mail+kde at branleb.de
Target Milestone: ---
Created attachment 191793
--> https://bugs.kde.org/attachment.cgi?id=191793&action=edit
A PDF Form reduced to an MWE (reduced from my original document which I cannot
share here)
SUMMARY
When opening a PDF Form with a value for a form element stored, that value is
not always displayed by okular in the default PDF display mode. This is true
for both for the value and the default value of Textfield.
However, when activating the forms mode via the "show forms" button, the value
is correctly shown as the field value. (A "lonely" default value is not shown
then either. This seems to be caused by poppler FormFieldText::text(), but the
rest seems to be okular specific)
And: If you change the value of a Textfield, that value will also be shown
afterwards in the default just display mode. (Probably, because okular adds an
additional object entry to the PDF file which is the one shown.)
So: Editing TextField in a PDF Form - at least judged by the result displayed -
seems to work fine, but okular seems to ignore some values for the textfield
in the pdf form
STEPS TO REPRODUCE
1. Open a PDF Form with a textfield with either an default value or value
stored (PDF Dict DV, V keys)
2. Enter the form edit mode ("Show Forms Button")
3. Change the value of any such field
4. Leave Form edit mode
5. Save PDF (under different file name) and open to verify
OBSERVED RESULT
After 1: Okular does not show a (pdf forms) fields stored value or default
value in normal display mode
After 2: Okular does now show a Value (PDF Dict /V key), but no default value
(/DV key) [seems to be caused by poppler]
After 4: Okular does not show a textfield value.
After 5: Okular still shows a value.
EXPECTED RESULT
1. Okular should display (default) value set for a form field immediately after
file open.
2. Okular should display the value in the field - irregardless whether in form
edit mode or in default display mode.
3. Okular should also show the default value
SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20260419
KDE Plasma Version: 6.6.4
KDE Frameworks Version: 6.25.0
Qt Version: 6.11.0
Kernel Version: 6.19.12-1-vanilla (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
Memory: 64 GiB of RAM (62.2 GiB usable)
Graphics Processor: AMD Radeon Graphics
ADDITIONAL INFORMATION
1. A dump of the field data (especially value and default value) via the
"pdftk file.pdf dump_data_fields" command shows the "plain data situation"
2. e.g. the firefox pdf viewer does display the form (and this MWE) correctly
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Okular-devel
mailing list