[okular] [Bug 307304] Javascript in forms not working correctly

Andre Heinecke bugzilla_noreply at kde.org
Tue Apr 17 07:57:12 UTC 2018


https://bugs.kde.org/show_bug.cgi?id=307304

Andre Heinecke <aheinecke at intevation.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|okular-devel at kde.org        |aheinecke at intevation.de

--- Comment #7 from Andre Heinecke <aheinecke at intevation.de> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list