Skip to content

Saving specific PDF that contains input data will not be displayed in Adobe Reader in other 3rd party apps #12319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bogdanmaris opened this issue Sep 3, 2020 · 2 comments

Comments

@bogdanmaris
Copy link

Affected versions

  • Firefox 81.0b5
  • Latest Nightly 82.0a1

Affected platforms

  • Ubuntu 18.04 64bit
  • Windows 10 64
  • macOS 10.15

Steps to reproduce

  1. Open the following pdf https://www.irs.gov/pub/irs-pdf/f1040.pdf
  2. Fill some data
  3. Click the download button to save the file locally
  4. Open the saved PDF in:
    Windows: Adobe Reader/Foxit
    macOS: Adobe Reader
    Ubuntu: Adobe Reader

Expected result

  • Data saved in Firefox is displayed in Adobe Reader after saving locally.

Actual result

  • Data saved in step 2 is not displayed once the PDF is opened in Adobe Reader.

Regression range

  • Not a regression since this is reproducible since this feature was first enabled in Nightly.

Additional Notes

  • This is not reproducible if the PDF is opened in another browser (Chrome, Safari, IE, Firefox, SumatraPDF).
  • Same thing if saving the PDF inside chrome and opening in Adobe.

Suggested severity

  • I my opinion this should have the S2 severity since data loss is involved.
@calixteman
Copy link
Contributor

This file contains XFA and Acroform and Acrobat (probably Foxit too) uses data from XFA so since we don't update them then nothing is displayed.
After investigations, getting "datasets" stream from XFA array, updating it (using the T value from Acroform to get field id) with the value and appending the new stream at end fixes the issue.
I'll do a patch in the next days.

@timvandermeij
Copy link
Contributor

Fixed by the PR above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants