Take this pdf http://www.debeka.de/service/formulare/leistungsantrag_krankenversicherung/lea_082011_bf_speicherbar_pdf.pdf and enter some values in the table at the bottom. In the field "Summe Euro-Beträge" you should see the sum of values. But that field stays empty at all times. This works on the adobe reader. Reproducible: Always
Confirming and fixing meta-bug tracking.
The URL in the bug report no longer points to a valid PDF file. Can the respective PDF file possibly be attached to the bug report? Without the file, there is no way to reproduce the bug and thus to try fixing it...
I sadly did not keep a copy of this file on my HD, so i'll mark this as needs info and see if the reported can provide the file, if not we'll have to close it since it can be known what had to be fixed.
Created attachment 112004 [details] test document
Test document added as attachment. It still shows the same issue. Adobe Reader works fine, okular doesn't work.
Andre, seems the file should work since it uses the SUM() thing you implemented but it doesn't seem to be working, would you be able to give it a quick look?
The problem here is that the SUM fields start readOnly / invisible. The calculation works and if you set the fields to visible by hand they are updated correctly. In the PDF itself I find such scriptlets: { var summe = this.getField("Summe Spalte 1").value; if(summe <= "0") { this.getField("Summe Spalte 1").display = display.hidden; } else this.getField("Summe Spalte 1").display = display.visible; } Currently there is no support for the display property and display object. These scripts are also not executed. Poppler currently does not parse the scriplets. pdfinfo -js does not show them. Looking at them in Adobe shows that the visibility scriptlets should be executed when a field is deactivated. I guess that means something like "Editing finished". The trigger has the Key "Bl". So: 1. Parse "Bl" Triggered actions in poppler. 2. Execute them in Okular. 3. Add basic support for the display object / property in Okulars JavaScript. I'll look into it.
Please add okular-devel to the CC if you assign a bug to yourself.