Summary: | Okular does not calculate in PDF forms | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Johannes Obermayr <johannesobermayr> |
Component: | PDF backend | Assignee: | Okular developers <okular-devel> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | aacid, aheinecke, aspotashev, m.weghorn, nate, simonandric5, uwestoehr, yurchor |
Priority: | NOR | Keywords: | usability |
Version: | 0.19.60 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | The file as I had it saved on my HD |
Description
Johannes Obermayr
2011-04-25 23:48:41 UTC
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. |