mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
JS - Add a function in api to get the fields ids in AcroForm::CO
This commit is contained in:
parent
ff2631493e
commit
c30a3a94f0
4 changed files with 48 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue