JS - Add a function in api to get the fields ids in AcroForm::CO

This commit is contained in:
Calixte Denizet 2020-10-16 17:15:58 +02:00
parent ff2631493e
commit c30a3a94f0
4 changed files with 48 additions and 0 deletions

View file

@ -885,6 +885,15 @@ class PDFDocumentProxy {
getFieldObjects() {
return this._transport.getFieldObjects();
}
/**
* @returns {Promise<Array<string> | null>} A promise that is resolved with an
* {Array<string>} containing IDs of annotations that have a calculation
* action, or `null` when no such annotations are present in the PDF file.
*/
getCalculationOrderIds() {
return this._transport.getCalculationOrderIds();
}
}
/**
@ -2562,6 +2571,10 @@ class WorkerTransport {
return this.messageHandler.sendWithPromise("GetFieldObjects", null);
}
getCalculationOrderIds() {
return this.messageHandler.sendWithPromise("GetCalculationOrderIds", null);
}
getDestinations() {
return this.messageHandler.sendWithPromise("GetDestinations", null);
}