From 00801298bb222896167da42c627a5e79b4da8583 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Tue, 8 Sep 2020 11:29:45 +0530 Subject: [PATCH] use the correct class from jsPDF.AcroForm --- examples/js/acroforms.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/examples/js/acroforms.js b/examples/js/acroforms.js index 297caa4f3..74177b89c 100644 --- a/examples/js/acroforms.js +++ b/examples/js/acroforms.js @@ -1,5 +1,15 @@ -/* global jsPDF, ComboBox, ListBox, CheckBox, PushButton, TextField, PasswordField, RadioButton, AcroForm */ +/* global jsPDF */ var doc = new jsPDF(); +var { + ComboBox, + ListBox, + CheckBox, + PushButton, + TextField, + PasswordField, + RadioButton, + Appearance, +} = jsPDF.AcroForm; doc.setFontSize(12); doc.text("ComboBox:", 10, 105); @@ -66,4 +76,4 @@ radioButton2.Rect = [50, 180, 30, 10]; var radioButton3 = radioGroup.createOption("Test3"); radioButton3.Rect = [50, 190, 20, 10]; -radioGroup.setAppearance(AcroForm.Appearance.RadioButton.Cross); +radioGroup.setAppearance(Appearance.RadioButton.Cross);