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
I have multiple checkboxes now I want to make one of them checked dynamically and it's not clickable using PDFkit.
Here is what I have tried so far.
// create a document and pipe to a blob
var doc = new PDFDocument();
var stream = doc.pipe(blobStream());
doc.initForm();
doc.formCheckbox('checked', 45,50,16,16, {
backgroundColor: '#fff'
})
// end and display the document in the iframe to the right
doc.end();
stream.on('finish', function() {
iframe.src = stream.toBlobURL('application/pdf');
});
How can I make this checkbox be checked automatically and make it disabled so that user can not check or uncheck the checkbox?