This starts by adding support for AFSimple_Calculate which
is the standard "calculate" function in Adobe Acrobat Pro.
Details
Details
- Reviewers
aacid - Group Reviewers
Okular - Maniphest Tasks
- T7805: Okular: Add support for JavaScript AFSimple_Calculate and textfield content calculation
- Commits
- R223:cead2bbef3c2: Add initial support for built-in javascript functs
Diff Detail
Diff Detail
- Repository
- R223 Okular
- Lint
Lint Skipped - Unit
Unit Tests Skipped
core/script/builtin.js | ||
---|---|---|
35 ↗ | (On Diff #25877) | why set ret to 1 if ret is 0? is this because you want to initialize? then you should test i is 0 otherwise 3*0*4 will be 4? |
core/script/builtin.js | ||
---|---|---|
35 ↗ | (On Diff #25877) | Indeed and nice catch :-). For PRD I wanted to set the start value to 1 and not 0. I made this more explicit now. |