Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
That's great. Thanks for that. I went to the pdfscripting site and downloaded JavaScript Popup Calendar and Bouncing Button Game. I tried each one with Adobe Reader 9, Foxit and Okular. The first two failed totally -- no sign that they even recognised that these were form-type pdfs. Okular immediately recognised them as forms and I click on the "Show Form" button the appeared. Clicking on the buttons did change things but nothing actually did anything. 2 pictures are worth 2,000 words so here they are. The first one is before I click on "Show Form" the second one is after I clcked. You can see the difference. Neither Adobe 9 Reader nor Foxit responded at all. There was nothing to click.
Conclusion? Okular Rules!!!
jdk
Hey that is great. Please try my second link and see if that works for you.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
I have come across Adobe PDFs which only seem to work when opened with Adobe plugins. Certainly in some situations an open source PDF program won't work.
Hey that is great. Please try my second link and see if that works for you.
If your 2nd link is SimpleFormCalculations then the results were the same. Nothing for Foxit or Adobe. With Okular I could enter data but I couldn't do any calculations.
jdk
But the only thing I see on the screen shots is the PRESS ME square moving from the centre to the right margin. Is that how it's supposed to work?
jdk
Yes, if you notice the "Press me" button changes to "Catch me" and tries to evade the mouse. Javascript built into the form. In reader with the calc form you enter variables and when you click into the "=" box the result is shown. Just simple examples but I've seen much more complicated forms.
Yes, if you notice the "Press me" button changes to "Catch me" and tries to evade the mouse. Javascript built into the form. In reader with the calc form you enter variables and when you click into the "=" box the result is shown. Just simple examples but I've seen much more complicated forms.
Ah yes. Now I see. I must be missing some plugin for the Adobe 9 Reader. It certainly doesn't do what you have shown. As for the calculations, if there's a "= box" I can't see it. Adobe 9 is completely unresponsive. It doesn't behave as though it knows that the pdf file is a form. The one case where it behaves correctly is the Robot Arm file. It can move the robot arm around on the right-side as it should. However all the controls on the left-hand side are unresponsive.
jdk
Ah yes. Now I see. I must be missing some plugin for the Adobe 9 Reader. It certainly doesn't do what you have shown. As for the calculations, if there's a "= box" I can't see it. Adobe 9 is completely unresponsive. It doesn't behave as though it knows that the pdf file is a form. The one case where it behaves correctly is the Robot Arm file. It can move the robot arm around on the right-side as it should. However all the controls on the left-hand side are unresponsive.
jdk
Not sure why your Reader isn't working. As far as I know, no separate plugins are required.
I don't know what I'm missing. I get this far (see below) and then no amount of clicking anywhere in the window allows me to enter any data anywhere.
jdk
I don't know what I'm missing. I get this far (see below) and then no amount of clicking anywhere in the window allows me to enter any data anywhere.
jdk
I'm at a loss. Could something be disabling javascript execution globally for security reasons?
Me too. I must be missing something. Notice there is no Javascript item on my preferences.
jdk
Yes, I see that. It stumps me. I just don't have a clue.
Edit: Looking around Google I see suggestions that javascript in Reader may not work properly if the default system "locale" is non-English. I see of course that you are in the U.K. so I hope you know I'm not trying to be insulting:
"Adobe Reader doesn't execute initial javascript code of 3D scene in pdf document. With friends we've tested several linux distributions, namely CentOS, Ubuntu, Arch Linux, Mandriva, OpenSUSE. Also several Adobe Reader versions like 9.4.6 or 9.1. No luck. For some reason though, it works fine in Fedora (with exactly the same Adobe Reader). Here is an example pdf for test: http://www.2shared.com/document/LIby...ious_dice.html . Just open the mysterious_dice.pdf and you should see a rotating dice. If you dont, javascript wasn't executed properly (it should be easy to check in Windows 7/XP or Fedora).
We thought that something is wrong in Reader settings (like disabled javascript), but javascript was always allowed. Then that maybe it is linux Adobe Reader bug, but again, why does it work in Fedora? So maybe some package(s) or something.
Another example is the Asymptote application, which uses javascript at the beginning for some scene settings (lights, camera position, etc) and especially with orthographic projection this problem shows up. More about this here: http://sourceforge.net/projects/asym.../topic/4021157.
Any idea what might be wrong with this? I will just add that javascript later on works, only the initial code is ignored. Thanks for any suggestion.
TheSil
November 18th, 2011, 06:31 PM
Alright, we managed to fix this behaviour, turned out that this is a problem on non-english linux systems with linux Adobe Reader. It has something to do with LC_NUMERIC variable, seems like Adobe Reader bug. Solution is to either use english system language or just run Adobe Reader with command like this:
Edit: Looking around Google I see suggestions that javascript in Reader may not work properly if the default system "locale" is non-English. I see of course that you are in the U.K. so I hope you know I'm not trying to be insulting:
Nope, no worries. Being helpful (what you are doing) is a far cry from being insulting (what you are not doing). In fact I moved back to the UK from Italy a little over a year ago and was living in the PRC and then Spain before that so it's probable that I installed Adobe 9 whilst living abroad. It would seem strange to design a product that doesn't work based on your locale but then this is Adobe.
Maybe I'll rip out Adobe 9 and try reinstalling it now that I'm back on British soil. It would be extremely amusing if it did work like yours after that. Thanks again. Whoops, silly me. That's not possible any more. As I said, I've never received a pdf form that I couldn't fill in using Okular. If I ever do receive one I like that I can always use Xournal to do the job.
jdk
Nope, no worries. Being helpful (what you are doing) is a far cry from being insulting (what you are not doing). In fact I moved back to the UK from Italy a little over a year ago and was living in the PRC and then Spain before that so it's probable that I installed Adobe 9 whilst living abroad. It would seem strange to design a product that doesn't work based on your locale but then this is Adobe.
Maybe I'll rip out Adobe 9 and try reinstalling it now that I'm back on British soil. It would be extremely amusing if it did work like yours after that. Thanks again. Whoops, silly me. That's not possible any more. As I said, I've never received a pdf form that I couldn't fill in using Okular. If I ever do receive one I like that I can always use Xournal to do the job.
jdk
Thanks, I think we've established that for the great majority of us Okular or other software will be perfectly fine for working with most pdf's.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.