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
Set `PdfDocument.flatten = true` to make annotations and form fields permanent. (The Viewer UI itself does not flatten; use the PDF Library in your pipeline.)
114
-
115
-
```ts
116
-
import { PdfDocument } from'@syncfusion/ej2-pdf';
117
-
118
-
const doc =newPdfDocument(signedBytes);
119
-
doc.flatten=true; // flattens annotations and form fields
120
-
const finalBytes =awaitdoc.save('final.pdf');
121
-
doc.destroy();
122
-
```
123
-
124
112
N> For sequential or multi‑user flows and digital signature appearances, see these live demos: [eSigning PDF Form](https://document.syncfusion.com/demos/pdf-viewer/react/#/bootstrap5/pdfviewer/esigning-pdf-forms), [Invisible Signature](https://document.syncfusion.com/demos/pdf-viewer/react/#/bootstrap5/pdfviewer/invisible-digital-signature) and [Visible Signature](https://document.syncfusion.com/demos/pdf-viewer/react/#/bootstrap5/pdfviewer/visible-digital-signature) in the React Sample Browser.
125
113
126
114
## How‑to guides
@@ -161,9 +149,9 @@ Use the **JavaScript PDF Library** to apply a cryptographic signature on a field
161
149
162
150
N> To preview visual differences, check the [Invisible Signature](https://document.syncfusion.com/demos/pdf-viewer/react/#/bootstrap5/pdfviewer/invisible-digital-signature) and [Visible Signature](https://document.syncfusion.com/demos/pdf-viewer/react/#/bootstrap5/pdfviewer/visible-digital-signature) in our Sample Browser. Digital Signature samples in the React sample browser.
163
151
164
-
### Finalize a signed document (flatten/lock)
152
+
### Finalize a signed document (lock)
165
153
166
-
After collecting all signatures and passing validations, **flatten** the PDF (and optionally restrict permissions) to prevent further edits. Use `PdfDocument.flatten` when saving the file.
154
+
After collecting all signatures and passing validations, **[Lock](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature#lock-signature)** the PDF (and optionally restrict permissions) to prevent further edits.
167
155
168
156
## Signature Workflow Best Practices (Explanation)
169
157
@@ -199,15 +187,15 @@ To prevent rework, validate the PDF before enabling signatures:
199
187

200
188
-**Approver** – Ensures feedback is addressed and signs when finalized.
-**Final Approver** – Verifies requirements, then [flattens](../document-handling/preprocess-pdf#flatten-form-fields--annotations) or [Lock Signature](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature#lock-signature) to make signatures permanent and may restrict further edits.
190
+
-**Final Approver** – Verifies requirements, then [Lock Signature](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature#lock-signature) to make signatures permanent and may restrict further edits.
203
191
204
-
N> **Implementation tip:** Use the PDF Library’s `flatten` when saving to make annotations and form fields permanent after the last signature.
192
+
N> **Implementation tip:** Use the PDF Library’s `flatten` when saving to make annotations and form fields permanent before the last signature.
205
193
206
194
### Multi‑signer patterns and iterative approvals
207
195
- Route the document through a defined **sequence of signers**.
208
196
- Use [comments and replies](../annotation/comments#add-comments-and-replies) for feedback without altering document content.
209
197
- For external participants, share only annotation data (XFDF/JSON) when appropriate instead of the full PDF.
210
-
- After all signatures, **flatten** to lock the file.
198
+
- After all signatures, **[Lock](https://help.syncfusion.com/document-processing/pdf/pdf-library/javascript/digitalsignature#lock-signature)** to lock the file.
211
199
212
200
N> Refer to [eSigning PDF Forms](https://document.syncfusion.com/demos/pdf-viewer/react/#/bootstrap5/pdfviewer/esigning-pdf-forms) sample that shows two signers filling only their designated fields and finalizing the document.
213
201
@@ -217,7 +205,7 @@ N> Refer to [eSigning PDF Forms](https://document.syncfusion.com/demos/pdf-viewe
217
205
-**Secure endpoints:** Protect PDF endpoints with token‑based access and authorization checks.
218
206
-**Audit and traceability:** Log signature placements, edits, and finalization events for compliance and audits.
219
207
-**Data protection:** Avoid storing sensitive PDFs on client devices; prefer secure server storage and transmission.
220
-
-**Finalize:** After collecting all signatures, flatten or lock to prevent edits.
208
+
-**Finalize:** After collecting all signatures, lock to prevent edits.
221
209
222
210
## See also
223
211
-[Create and Modify Annotation](../annotation/create-modify-annotation)
0 commit comments