pdf.js/src/scripting_api
calixteman 84d7cccb1d
JS - Handle correctly hierarchy of fields (#13133)
* JS - Handle correctly hierarchy of fields
  - it aims to fix #13132;
  - annotations can inherit their actions from the parent field;
  - there are some fields which act as a container for other fields:
    - they can be access through js so need to add them with an empty type (nothing in the spec about that but checked in Acrobat);
    - calculation order list (CO) can reference them so need make them through this.getField;
    - getArray method must return kids.
  - field values are number, string, ... depending of their type but nothing in the spec on how to know what's the type:
    - according to the comment for Canonical Format: https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/PDF32000_2008.pdf#page=461
    - it seems that this "type" can be guessed from js action Format (when setting a type in Acrobat DC, the only affected thing is this action).
  - util.scand with an empty string returns the current date.
2021-03-30 08:50:35 -07:00
..
aform.js JS - Fix setting a color on an annotation 2021-02-20 15:24:37 +01:00
app.js Update the ESLint env to use "es2021" 2021-01-24 11:25:43 +01:00
color.js [Regression] Prevent the *built* pdf.scripting.js/pdf.sandbox.js files from accidentally including most of the main-thread code (PR 12631 follow-up) 2020-12-04 14:17:26 +01:00
common.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
console.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
constants.js JS -- Add few missing constants in global scope 2021-01-11 17:19:28 +01:00
doc.js JS -- Fix doc.getField and add missing field methods 2021-02-17 10:42:52 +01:00
error.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
event.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
field.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
fullscreen.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
initialization.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00
pdf_object.js JS - Add the basic architecture to be able to execute embedded js 2020-10-21 19:00:56 +02:00
print_params.js JS -- Implement doc object 2020-11-10 16:16:42 +01:00
proxy.js In order to simplify m-c code, move some in pdf.js 2020-12-17 15:03:26 +01:00
thermometer.js JS -- Implement app object 2020-11-20 15:46:52 +01:00
util.js JS - Handle correctly hierarchy of fields (#13133) 2021-03-30 08:50:35 -07:00