PdfCheckBoxStyle
12 Sep 20251 minute to read
Public Enum to define check box style.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access check box field
let field: PdfCheckBoxField = document.form.fieldAt(0) as PdfCheckBoxField;
// Access first item of check box field
let item: PdfStateItem = field.itemAt(0) as PdfStateItem;
// Sets the check box style as check
item.style = PdfCheckBoxStyle.check;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();-
check- Specifies the type ofcheck. -
circle- Specifies the type ofcircle. -
cross- Specifies the type ofcross. -
diamond- Specifies the type ofdiamond. -
square- Specifies the type ofsquare. -
star- Specifies the type ofstar.