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 : trueI 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 :( ...
81 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.pdfto 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 :
and then, the QRcode should be appears on the last page like below :
Hope this helps.