Skip to content

Commit cddca80

Browse files
authored
Merge pull request #2902 from iamvijaydev/fix-acroforms-demo
use the correct class from jsPDF.AcroForm
2 parents 550ad8b + 0080129 commit cddca80

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

examples/js/acroforms.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
/* global jsPDF, ComboBox, ListBox, CheckBox, PushButton, TextField, PasswordField, RadioButton, AcroForm */
1+
/* global jsPDF */
22
var doc = new jsPDF();
3+
var {
4+
ComboBox,
5+
ListBox,
6+
CheckBox,
7+
PushButton,
8+
TextField,
9+
PasswordField,
10+
RadioButton,
11+
Appearance,
12+
} = jsPDF.AcroForm;
313

414
doc.setFontSize(12);
515
doc.text("ComboBox:", 10, 105);
@@ -66,4 +76,4 @@ radioButton2.Rect = [50, 180, 30, 10];
6676
var radioButton3 = radioGroup.createOption("Test3");
6777
radioButton3.Rect = [50, 190, 20, 10];
6878

69-
radioGroup.setAppearance(AcroForm.Appearance.RadioButton.Cross);
79+
radioGroup.setAppearance(Appearance.RadioButton.Cross);

0 commit comments

Comments
 (0)