mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Add the possibility to collect Javascript actions
This commit is contained in:
parent
fd1d9cc85f
commit
71ecc3129b
7 changed files with 383 additions and 3 deletions
|
@ -876,6 +876,14 @@ class PDFDocumentProxy {
|
|||
saveDocument(annotationStorage) {
|
||||
return this._transport.saveDocument(annotationStorage);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Promise<Array<Object>>} A promise that is resolved with an
|
||||
* {Array<Object>} containing field data for the JS sandbox.
|
||||
*/
|
||||
getFieldObjects() {
|
||||
return this._transport.getFieldObjects();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -2549,6 +2557,10 @@ class WorkerTransport {
|
|||
});
|
||||
}
|
||||
|
||||
getFieldObjects() {
|
||||
return this.messageHandler.sendWithPromise("GetFieldObjects", null);
|
||||
}
|
||||
|
||||
getDestinations() {
|
||||
return this.messageHandler.sendWithPromise("GetDestinations", null);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue