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

2020-08-18 Thread Alexander Potashev
https://bugs.kde.org/show_bug.cgi?id=307304

Alexander Potashev  changed:

   What|Removed |Added

 CC||aspotas...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-05-02 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=307304

Nate Graham  changed:

   What|Removed |Added

 CC||n...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-04-17 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=307304

Albert Astals Cid  changed:

   What|Removed |Added

 CC||okular-de...@kde.org

--- Comment #8 from Albert Astals Cid  ---
Please add okular-devel to the CC if you assign a bug to yourself.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-04-17 Thread Andre Heinecke
https://bugs.kde.org/show_bug.cgi?id=307304

Andre Heinecke  changed:

   What|Removed |Added

   Assignee|okular-de...@kde.org|aheine...@intevation.de

--- Comment #7 from Andre Heinecke  ---
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 watching all bug changes.

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

2018-04-16 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=307304

Albert Astals Cid  changed:

   What|Removed |Added

 Status|NEEDSINFO   |CONFIRMED
 Resolution|WAITINGFORINFO  |---
 CC||aheine...@intevation.de

--- Comment #6 from Albert Astals Cid  ---
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?

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-04-13 Thread p
https://bugs.kde.org/show_bug.cgi?id=307304

--- Comment #5 from p  ---
Test document added as attachment. It still shows the same issue. Adobe Reader
works fine, okular doesn't work.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2018-04-13 Thread p
https://bugs.kde.org/show_bug.cgi?id=307304

--- Comment #4 from p  ---
Created attachment 112004
  --> https://bugs.kde.org/attachment.cgi?id=112004&action=edit
test document

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-28 Thread Albert Astals Cid
https://bugs.kde.org/show_bug.cgi?id=307304

Albert Astals Cid  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 Status|CONFIRMED   |NEEDSINFO

--- Comment #3 from Albert Astals Cid  ---
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.

-- 
You are receiving this mail because:
You are watching all bug changes.

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

2017-07-20 Thread Michael Weghorn
https://bugs.kde.org/show_bug.cgi?id=307304

Michael Weghorn  changed:

   What|Removed |Added

 CC||m.wegh...@posteo.de

--- Comment #2 from Michael Weghorn  ---
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...

-- 
You are receiving this mail because:
You are watching all bug changes.