[XFA] PDFs with no dataset entry can't be saved
Categories
(Firefox :: PDF Viewer, defect, P1)
Tracking
()
People
(Reporter: danibodea, Assigned: calixte)
References
Details
Attachments
(3 files)
Note
- When the user loads a specific PDF file in the browser and focuses a field, he will notice that the browser will not show the corresponding message as Adobe Reader does.
Affected versions
- Nightly v91.0a1
Affected platforms
- all
Steps to reproduce
- Launch browser.
- Flip "pdfjs.enableXfa" to true.
- Load the attached PDF file.
- Focus a field.
Expected result
- A message is displayed.
Actual result
- No message is displayed.
Regression range
- Not a regression.
Additional information
- When interacting with any control from the PDF form, Adobe Reader shows a message saying "Please Note: You cannot save a completed copy of this for your computer. If you would like a copy for your records, please fill it in and print it."
Comment 1•3 years ago
|
||
We need to get some input from UX for this bug. A workaround exists as the user can print the form.
Reporter | ||
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
The pdf doesn't contain a datasets
entry in the /XFA
array so it's likely why we can't save anything.
In the current state, it's impossible to workaround this because when saving we're doing an incremental update which means that we can overwrite objects that are used through a reference and here the /XFA
array is not a reference so we cannot overwrite it to add a datasets entry.
So the only way to save it is to print it, it's even possible to print it using a pdf printer but in this case the resulting pdf will lose the form stuff.
:RT what do you think about adding a bar similar to the Acrobat one as described in comment 0 ?
Assignee | ||
Updated•3 years ago
|
Comment 3•3 years ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #2)
The pdf doesn't contain a
datasets
entry in the/XFA
array so it's likely why we can't save anything.
In the current state, it's impossible to workaround this because when saving we're doing an incremental update which means that we can overwrite objects that are used through a reference and here the/XFA
array is not a reference so we cannot overwrite it to add a datasets entry.
Couldn't we overwrite the parent AcroForm[48 0 R] and replace XFA with our own new object?
Assignee | ||
Comment 4•3 years ago
|
||
:bdahl, that's correct I'll do that.
:RT, for now we've a workaround so please forget my question.
Comment 5•3 years ago
|
||
Updated•3 years ago
|
Comment 6•3 years ago
|
||
Commit merged into master by GitHub Authored by Brendan Dahl (brendandahl)
Updated•3 years ago
|
Updated•3 years ago
|
Reporter | ||
Comment 7•3 years ago
|
||
Considering the change of title, I assume that the fix for this issue will be to allow saving instead of showing the warning messages that Adobe does show. This being said, I have verified that saving works fine. Let me know if you need another bug for the notification/warning messages that still aren't shown. Thanks!
Assignee | ||
Comment 8•3 years ago
|
||
:danibodea, we already have a bug for the forms which cannot be saved.
Updated•2 years ago
|
Updated•2 years ago
|
Description
•