Public Enum to define visibility of form field.
// Load an existing PDF document
let document: PdfDocument = new PdfDocument(data, password);
// Access PDF form field
let field: PdfField = document.form.fieldAt(0);
// Sets the visibility of form field as hidden
field.visibility = PdfFormFieldVisibility.hidden;
// Save the document
document.save('output.pdf');
// Destroy the document
document.destroy();
hidden
- Specifies the type of hidden
.hiddenPrintable
- Specifies the type of hiddenPrintable
.visible
- Specifies the type of visible
.visibleNotPrintable
- Specifies the type of visibleNotPrintable
.