Closed Bug 1773680 Opened 2 years ago Closed 2 years ago

Default values are not displayed in the pdf form when saved locally

Categories

(Firefox :: PDF Viewer, defect, P2)

Desktop
All
defect

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- fixed
firefox101 --- wontfix
firefox102 --- wontfix
firefox103 --- verified

People

(Reporter: epopescu, Assigned: calixte)

References

Details

Attachments

(9 files)

Affected versions

  • Firefox 101.01
  • Nightly 103.0a1
  • Firefox 102.0b6
  • ESR 91.9.1

Affected platforms

  • Windows 10
  • Ubuntu 22.04
  • Mac 12

Steps to reproduce

  1. Access any pdf form that has default values such as http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf
  2. Click the download button and save the form locally
  3. Repeat steps [1-2] and right-click in the pdf to "Save Page As"

Expected result

  • Default values should be saved and displayed in the saved file.

Actual Result

When downloading or saving a pdf form with default values, these values are not saved and displayed in the saved file.

Regression range

Not a recent regression.

Additional notes

In the example given, the default value for Country is not displayed in the file saved locally no matter the OS used.

On Mac 12, Gender and Height default values are not displayed as well.

Severity: -- → S3
Has STR: --- → yes
OS: Unspecified → All
Hardware: Unspecified → Desktop
Attached image pdf form.jpg
Attached image saved pdf.jpg

Nothing is selected in the list (V == DV == "") but in the HTML counterpart the value is set to the first one (hence Austria).
So we must add an empty entry, selected by default, in the combo list.

Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: -- → P2

Are you able to reproduce back to 81?

Flags: needinfo?(epopescu)
See Also: → 1715476
Attached file OoPdfFormExample.pdf
Commit merged into master by GitHub
Authored by calixteman (calixteman)

(In reply to Marco Castelluccio [:marco] from comment #4)

Are you able to reproduce back to 81?

This issue is reproducible also on Firefox 81.0 on Windows 10 x64, Ubuntu 22.04 and MacOS 12.3.

Flags: needinfo?(epopescu)

This should be fixed in latest Nightly, could you verify?

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(epopescu)
Resolution: --- → FIXED

(In reply to Marco Castelluccio [:marco] from comment #9)

This should be fixed in latest Nightly, could you verify?

Currently the default value is no longer displayed in the Country field when using the latest Nightly 103.0a1 to load the pdf http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf, although it is displayed with an older build from Friday(10-Jun-2022 11:50).
So there are two default values in the pdf form now when using the latest Nightly: Gender and Height.

These two default values were already preserved and displayed when saving or downloading the pdf file on Windows 10 x64 and Ubuntu 22.04, so I've checked this issue fixed on MacOS 12.3.
On MacOS 12.3 the issue persists because the Gender and Height default values are not displayed in the saved pdf file(screenshot attached).Thanks

Flags: needinfo?(epopescu)

(In reply to Ina Popescu from comment #10)

Currently the default value is no longer displayed in the Country field when using the latest Nightly 103.0a1 to load the pdf http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf, although it is displayed with an older build from Friday(10-Jun-2022 11:50).
So there are two default values in the pdf form now when using the latest Nightly: Gender and Height.

This is the same behavior as Adobe Acrobat Reader, right?

These two default values were already preserved and displayed when saving or downloading the pdf file on Windows 10 x64 and Ubuntu 22.04, so I've checked this issue fixed on MacOS 12.3.
On MacOS 12.3 the issue persists because the Gender and Height default values are not displayed in the saved pdf file(screenshot attached).Thanks

Pretty unexpected. Calixte, could you check why it isn't fixed on Mac?

Flags: needinfo?(epopescu)
Flags: needinfo?(cdenizet)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

About mac: the bug is in Preview itself, the file is correctly saved but Preview doesn't render it correctly.
For your information we have a similar issue (with the same pdf) when printing:
https://bugzilla.mozilla.org/show_bug.cgi?id=1715476

Flags: needinfo?(cdenizet)

Ina, could you confirm the PDF is shown correctly if you open it in Adobe Reader on Mac? And can you check it is not shown correctly in Preview even if you download the file from Safari?

(In reply to Marco Castelluccio [:marco] from comment #14)

Ina, could you confirm the PDF is shown correctly if you open it in Adobe Reader on Mac? And can you check it is not shown correctly in Preview even if you download the file from Safari?

The default values Gender and Height are correctly shown when opening the downloaded pdf file with Adobe Reader on Mac(Screenshot Open in Adobe Reader).

When opening the pdf http://foersom.com/net/HowTo/data/OoPdfFormExample.pdf directly in Safari, there are no default values shown in Gender and Height fields.

When using "Open in Preview" in Safari, no default values are shown(Screenshot Open in Preview from Safari). Same goes when using "Open With Preview(default)" after downloading the pdf file from Nightly 103.0a1(Screenshot Open in Preview).

In conclusion no default values are shown when opening the downloaded pdf file in Preview, but they are shown when using Adobe Reader.

Flags: needinfo?(epopescu)

We can then call this fixed, the problem in Preview is a bug in Preview.

Status: REOPENED → RESOLVED
Closed: 2 years ago2 years ago
Resolution: --- → FIXED
Depends on: 1780839
Target Milestone: --- → 103 Branch
Duplicate of this bug: 1715476
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: