mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
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:
parent
142f131ee1
commit
1e2173f038
18 changed files with 829 additions and 125 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue