Calixte Denizet
283aac4c53
JS -- Implement app object
...
* https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/AcrobatDC_js_api_reference.pdf
* Add color, fullscreen objects + few constants.
2020-11-20 15:46:52 +01:00
Calixte Denizet
c7974e9996
JS -- Add a sandbox based on quickjs
...
* quickjs-eval.js has been generated using https://github.com/mozilla/pdf.js.quickjs/
* lazy load of sandbox code
* Rewrite tests to use the sandbox
* Add a task `watch-sandbox` which update bundle pdf.sandbox.js on change in the sandbox code
2020-11-19 13:40:46 +01:00
Calixte Denizet
2dfac4cb41
JS -- Fix events dispatchment and add tests
...
* dispatch event to take into account calculation order
* use a map for actions in Field
2020-11-10 17:26:29 +01:00
Calixte Denizet
8de98079ca
JS -- Implement doc object
...
* https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=335
* it has all the properties/methods defined in the spec
* unimplemented methods are there but with an empty body to avoid exception when calling an undefined method
* implement zoom, zoomType, layout, pageNum, ...
2020-11-10 16:16:42 +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