Skip to content
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

Canadian immigration forms #15946

Open
jtracey opened this issue Jan 20, 2023 · 4 comments
Open

Canadian immigration forms #15946

jtracey opened this issue Jan 20, 2023 · 4 comments

Comments

@jtracey
Copy link

jtracey commented Jan 20, 2023

Attach (recommended) or Link to PDF file here:
The following are the set of Canadian immigration forms that visibly fail to correctly function on opening. I have not done any checks that the other forms on that page correctly fill, but they at least do not show any errors. All of these errors seem to be of the same or very similar nature, and likely described by the warning "XFA-editing is not implemented."
IMM 0008e
IMM 1294e
IMM 1295e
IMM 1344e
IMM 5257e
IMM 5257e SCH1
EIMM 5669e
IMM 5708e
IMM 5709e
IMM 5710e

Configuration:

  • Web browser and its version: Firefox Nightly 111.0a1 (2023-01-17)
  • Operating system and its version: Xubuntu 22.10
  • PDF.js version: 3.3.55 [1d68370]
  • Is a browser extension: built-in to Firefox

Steps to reproduce the problem:

  1. open any of the listed Canadian immigration forms
  2. (optional) press one of the "Validate" buttons

What is the expected behavior? (add screenshot)

Page renders without errors or warnings, and the Validate button correctly validates and generates the barcodes as described in its tooltip ("Validate button. Validate the entire application. Any errors will be identified with a popup message and marked as red. If the application is successfully validated, barcodes will be generated on the last page."). Screenshot from Adobe Acrobat Reader DC running in Wine, form IMM 5257e SCH1 (the smallest file and quickest to fill). Also note the "Page 1 of 2" in the upper right, and the "Validated // No" box in the lower right (and, less importantly, the triangle bullet on the left). I couldn't get this form to generate the barcodes, only to change the Validated box to "Yes", but the next smallest, IMM 1294e, does.

Screenshot_2023-01-19_19-26-12

What went wrong? (add screenshot)

Document renders an error message ("JavaScript has been disabled, the form requires JavaScript to validate properly // Please enable JavaScript through Preferences under the Edit menu and reopen the form."), and the Validate button has no effect (it also lacks the tooltip). pdf.js does actually render the document though, which is more than can be said for any other maintained PDF viewer on Linux, including Chromium's, so congratulations for accomplishing that.

Screenshot_2023-01-19_19-26-52

@jtracey
Copy link
Author

jtracey commented Jan 20, 2023

Related: #13611, #15256

@gregorysouzasilva

This comment was marked as off-topic.

@nekohayo
Copy link

nekohayo commented Apr 5, 2024

In case it might be relevant for joint troubleshooting, I have a corresponding bug report on Canadian immigration forms in the Poppler PDF rendering library: https://gitlab.freedesktop.org/poppler/poppler/-/issues/1481

@gregorysouzasilva
Copy link

I have created a repo with the solution to fill these gov forms.

https://github.com/gregorysouzasilva/pdf-filler

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

4 participants