You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use an AcroFormCheckbox, it will be displayed correctly in Acrobat Reader, but when you want to print the document, the checkbox will not be displayed if it is unchecked.
I think it is not a bug. You have to add a border to the Checkbox, so that you can see that it is an empty checkbox. So create first a rectangle and then create above it the checkbox.
I followed your instructions and it worked. Therefore i will close this issue.
Thanks for your help and time
I changed this code according to your suggestion jsfiddle
Uh oh!
There was an error while loading. Please reload this page.
If you use an AcroFormCheckbox, it will be displayed correctly in Acrobat Reader, but when you want to print the document, the checkbox will not be displayed if it is unchecked.
you can see the bug here jsfiddle
pdf = new jspdf.jsPDF();
var checkBox = new jspdf.AcroFormCheckBox();
checkBox.fieldName='chbox_test';
checkBox.maxFontSize = 9;
checkBox.readOnly = false;
checkBox.height = 3;
checkBox.width =3;
checkBox.x = 24;
checkBox.y = 20;
pdf.addField(checkBox);
pdf.text('Fotos',30, checkBox.y + 3);
pdf.save('Test.pdf');
The text was updated successfully, but these errors were encountered: