mirror of
https://github.com/foliojs/pdfkit.git
synced 2025-12-08 20:15:54 +00:00
Update acroform.js
Updated error text document.initForms() to document.initForm() as correct method name is initForm()
This commit is contained in:
parent
b35c6f9179
commit
76cdedd967
@ -181,7 +181,7 @@ export default {
|
||||
_fieldDict(name, type, options = {}) {
|
||||
if (!this._acroform) {
|
||||
throw new Error(
|
||||
'Call document.initForms() method before adding form elements to document'
|
||||
'Call document.initForm() method before adding form elements to document'
|
||||
);
|
||||
}
|
||||
let opts = Object.assign({}, options);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user