This sample demonstrates the following features in the Syncfusion PDF Viewer:
-
Save Signature to Server
- Capture signature field values using the formFieldPropertiesChange event.
- Send the signature data to a server and store it in a text file.
-
Retrieve and Apply Saved Signature
- Fetch previously stored signature data from the server.
- Programmatically populate signature fields in the PDF Viewer and update the values.
-
Redact Specific Form Fields
- Locate target form fields using formFieldCollections.
- Add redaction annotations over selected fields.
- Permanently apply redaction using the redact() API.
-
Flatten Form Fields
- Flatten specific form fields (for example, text boxes) using the Syncfusion PDF Library.
- Reload the updated PDF into the viewer.
-
Export and Import Form Data
- Export form field data in supported formats:
- JSON
- XFDF
- FDF
- JavaScript Object
- Import previously exported form data into the PDF Viewer.
- Export form field data in supported formats:
- Detects signature creation or modification.
- Sends signature data to the backend for persistence.
- Retrieves saved signature data.
- Updates matching signature fields automatically.
- Adds redaction marks over selected fields.
- Permanently removes sensitive content.
- Converts interactive fields into static PDF content.
- Prevents further editing.
Supported formats:
- JSON
- XFDF
- FDF
- JavaScript Object
- Angular
- Syncfusion EJ2 PDF Viewer
- Syncfusion EJ2 PDF Library
- Backend API (optional for signature storage)
- Load PDF document.
- Fill form fields and sign.
- Save signature to server.
- Retrieve signature when needed.
- Redact sensitive fields if required.
- Flatten selected form fields.
- Export form data or document.
- Contract signing workflows
- Employee onboarding forms
- Insurance applications
- Government forms
- Compliance-driven document processing
- Signature data can be stored as text in a server.
- Redaction permanently removes content from the PDF.
- Flattened fields cannot be edited afterward.
- Exported form data can be reused to populate the same PDF later.
This sample showcases end-to-end form field management, including signature persistence, redaction, flattening, and form data export/import within the Syncfusion PDF Viewer.