Skip to content

Commit

Permalink
Merge pull request #2902 from iamvijaydev/fix-acroforms-demo
Browse files Browse the repository at this point in the history
use the correct class from jsPDF.AcroForm
  • Loading branch information
HackbrettXXX committed Sep 8, 2020
2 parents 550ad8b + 0080129 commit cddca80
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions 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);
Expand Down Expand Up @@ -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);

0 comments on commit cddca80

Please sign in to comment.