Version: unspecified (using Devel) OS: Linux 1. Download this PDF file: http://www.lff.bayern.de/download/formularcenter/beihilfe/c2740198-361d-46a7-a0b6-9873761ca878.pdf 2. Go to page 3 3. Type in some values in last column 4. The last row/column (bottom right) should be calculated ... Reproducible: Always
The file is sadly not available anymore, do you know where it is located now?
(In reply to comment #1) > The file is sadly not available anymore, do you know where it is located now? http://www.lff.bayern.de/download/formularcenter/beihilfe/beihilfeantrag.pdf
Thanks Yuri :)
> http://www.lff.bayern.de/download/formularcenter/beihilfe/beihilfeantrag.pdf This file is no longer available. I think that the bug still exists in Okular 1.1.3 because PDF form support seems to be in general broken: wrong display of the elements, no JavaScript, resetting of the form fields does not work ...
Created attachment 106931 [details] The file as I had it saved on my HD
(In reply to Uwe Stöhr from comment #4) > > http://www.lff.bayern.de/download/formularcenter/beihilfe/beihilfeantrag.pdf > > This file is no longer available. > > I think that the bug still exists in Okular 1.1.3 because PDF form support > seems to be in general broken: wrong display of the elements, no JavaScript, Please stop spreading wrong news, JavaScript works fine at least for some cases https://www.youtube.com/watch?v=S-zmHc3WUhs > resetting of the form fields does not work ...
> The file as I had it saved on my HD Thank you. However, the bug still exists in Okular 1.1.3 for me: no calculation is performed.
> Please stop spreading wrong news, JavaScript works fine I don't spread wrong this, JavaScript does not work for me and therefore I reported it today as bug: https://bugs.kde.org/show_bug.cgi?id=382859 If you have a PDF in which JavaScript works, please attach there that I could have a look why it doesn't work for me.
While working on https://phabricator.kde.org/T7805 I also looked at the file here it seems to do something to calculate the last sum that is not handled by poppler. If I use popplers/util/pdfinfo -js I don't get the JavaScript returned that contains the calculate call. So Okular does not even evaluate it. Using pdfextract from the origami-pdf package i can extract the JavaScript though and it uses AFSimple_Calculate. But I don't see where the JavaScript is added. It does not appear to be in a calculate action, otherwise poppler would extract it. Also if I try to edit the PDF in Adobe Acrobat Pro it tells me that the document uses "advanced features" which are not supported by Acrobat Pro. So as far as I understand it, while above mentioned Task would fix the calculation in theory, it does not fix this issue as the JavaScript for the calculation is injected in a way that poppler / okular don't extract. Yet.
Created attachment 177748 [details] testcase calculate sums in forms Here is an other testcase to demonstrate issue 271728 "Okular does not calculate in PDF forms" The sums (marked in yellow) are calculated in Foxit and Adobe. Not so in Okular.