Cannot use JavaScript inside PDF with Firefox

I am having troubles using JavaScript in a PDF file opened with Firefox.

To sum up, it is a file that uses XFA forms and JavaScript to validate the form and generate a QrCode. Here is the link to the file:IRCC Form

It just tells me:

JavaScript has been disabled, the form requires JavaScript to validate properly.
Please enable JavaScript through Preferences under the Edit menu and reopen the form.

I checked my about:config in firefox. I have my

pdfjs.disable : false
pdfjs.enableScripting : true
javascript.enabled : true

I can fill in the form but the Validate button does nothing. I even tried with Chrome and it doesn't work.

Please help me, I don't want to go back to Windows with Adobe Acrobat Reader. I left that dark past behind me :( ...

8

1 Answer

if you don't have Adobe for Ubuntu, you can follow this to install Adobe Reader 9 on i386

wget --progress=dot -O ~/adobe.deb ftp://
sudo apt install libxml2:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libatk-adaptor:i386
sudo dpkg --add-architecture i386
sudo apt update
sudo dpkg -i ~/adobe.deb
acroread /path/file.pdf

to enable JavaScript support follow :

Edit > Preferences > JavaScript > Checkmark Enable Acrobat JavaSript and Checkmark Enable JavaScript Security

and then, to validate the signature follow :

View > Navigation Panels > Click Signatures > on the left panel click Validate All button to accept all certified by IRCC

after you fill the form, click the validate button and it will appears the notification JS like below :

enter image description here

and then, the QRcode should be appears on the last page like below :

enter image description here

Hope this helps.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like