JS - Collect and execute actions at doc and pages level

* the goal is to execute actions like Open or OpenAction
 * can be tested with issue6106.pdf (auto-print)
 * once #12701 is merged, we can add page actions
This commit is contained in:
Calixte Denizet 2020-12-07 19:22:14 +01:00
parent 142f131ee1
commit 1e2173f038
18 changed files with 829 additions and 125 deletions

View file

@ -159,6 +159,9 @@ const AnnotationActionEventType = {
F: "Format",
V: "Validate",
C: "Calculate",
};
const DocumentActionEventType = {
WC: "WillClose",
WS: "WillSave",
DS: "DidSave",
@ -166,6 +169,11 @@ const AnnotationActionEventType = {
DP: "DidPrint",
};
const PageActionEventType = {
O: "PageOpen",
C: "PageClose",
};
const StreamType = {
UNKNOWN: "UNKNOWN",
FLATE: "FLATE",
@ -1011,9 +1019,11 @@ export {
FontType,
ImageKind,
CMapCompressionType,
DocumentActionEventType,
AbortException,
InvalidPDFException,
MissingPDFException,
PageActionEventType,
PasswordException,
PasswordResponses,
PermissionFlag,