Jonas Jenwald
ec3bcadf56
Enable the unicorn/no-array-push-push
ESLint plugin rule
...
There's generally speaking no need to use multiple consecutive `Array.prototype.push()` calls, since that method accepts multiple arguments, and this ESLint rule helps enforce that pattern.
Please see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-array-push-push.md for additional information.
2021-05-25 13:54:46 +02:00
Calixte Denizet
4a5f1d1b7a
JS - Fix setting a color on an annotation
...
- strokeColor corresponds to borderColor;
- support fillColor and textColor;
- support colors on the different annotations;
- fix typo in aforms (+test).
2021-02-20 15:24:37 +01:00
Calixte Denizet
8e6bec6e2e
JS -- Add few missing constants in global scope
...
- these constants are available in pdfium implementation too
- fix error code in aform.js
2021-01-11 17:19:28 +01:00
Calixte Denizet
167ff1a7fc
JS -- Actions must be evaluated in global scope
...
* All the public properties of doc are injected into globalThis, in order to make them available through `this`
* Put event in the global scope too.
2020-12-17 22:01:45 +01:00
Calixte Denizet
f94269c0d1
JS -- add function eMailValidate used to validate an email address
2020-12-10 21:51:37 +01:00
Calixte Denizet
0f899edfc8
JS -- Add aform functions
...
* These functions aren't in the PDF specs but seems to be widely used
* So the specs for these functions are:
* http://www.sfu.ca/~wcs/ForGraham/Aladdin%20stuff/Acrobat%20Reader%205.0/Contents/MacOS/JavaScripts/AForm.js
* pdfium source code
2020-12-07 19:37:34 +01:00
Calixte Denizet
e76a96892a
JS - Add the basic architecture to be able to execute embedded js
2020-10-21 19:00:56 +02:00