PdfFormFieldVisibility
12 Sep 20251 minute to read
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 ofhidden. -
hiddenPrintable- Specifies the type ofhiddenPrintable. -
visible- Specifies the type ofvisible. -
visibleNotPrintable- Specifies the type ofvisibleNotPrintable.