Fix PDF Signature Fields Losing Read-Only Settings on Spawned Pages
Question details
The user needs to maintain read-only-after-signing properties for signature fields on PDF pages that are dynamically spawned from hidden templates.

- Product
- PDF Editor
- Device & OS
- not provided
- Scenario
- Developing dynamic PDF forms that require multi-step approval workflows, utilizing JavaScript to spawn pages from hidden templates.
- Observed behavior
- Signature fields on spawned pages fail to retain their read-only properties because security restrictions prevent digital signature fields from being copied during document assembly events.
Verify if your workflow strictly mandates cryptographic digital signatures, or if visual approval markers (such as custom dynamic stamps) are legally sufficient for your approval process.
Use a Custom Stamp with JavaScript for Approval Workflows
Instead of relying on copied digital signature fields, use a custom script to apply a dynamic approval stamp that extracts and displays signer information.
When you use a certificate-based digital signature, strict JavaScript security prevents document assembly during a spawning event to prevent fraud. Because of this, hidden template signature fields cannot retain their locking properties when copied to a new page.
To achieve a seamless approval workflow without triggering these security blocks, you can create a custom script that reads the SignatureInfo object from existing signed fields and applies a visual stamp to the spawned page.
Open your PDF editor, navigate to the Comment or Stamp tools, and create a custom stamp that will serve as your visual approval marker.
Access the JavaScript console or document-level scripts and write a script designed to extract the certificate subject's distinguished name from the existing SignatureInfo object.
Bind the JavaScript action to the page-spawning event so that the custom stamp is automatically applied to the newly created page, simulating a signed and locked field.

Implement a Script to Manually Lock Fields
Use JavaScript to forcefully apply read-only restrictions to specific form fields after the page spawning or signing event is completed.
Create and Manage Dynamic PDF Forms with WPS Office
WPS Office provides comprehensive tools for designing PDF forms, managing digital signatures, and adding custom stamps. It fully supports standard PDF capabilities, allowing you to build secure, dynamic approval workflows with ease.
- 1. Open your PDF document: Launch WPS Office and open the PDF form you wish to modify or sign.
- 2. Access Form tools: Navigate to the 'Form' tab to add, edit, or configure properties for your text and signature fields.
- 3. Manage Document Security: Go to the 'Protect' tab to apply digital signatures, manage certificates, or lock document editing.
- 4. Apply Custom Stamps: Use the 'Comment' tab to design and insert custom approval stamps if digital signature restrictions block your dynamic workflow.

Frequently Asked Questions
Why aren't digital signature fields copied when spawning a page from a template?
To prevent document fraud, standard PDF security protocols block document assembly actions (like spawning new pages) after a cryptographic signature is applied. This ensures that no new, unapproved content can be added to a document that has already been signed by stakeholders.
Can I automatically lock specific form fields after a PDF is signed?
Yes. When setting up a digital signature field in a PDF editor, you can access the field's properties and configure the 'Signed' tab to automatically lock all fields, specific fields, or no fields once the signature is successfully applied.
What is a good alternative to digital signatures for multi-step dynamic PDF workflows?
Dynamic custom stamps powered by JavaScript are an excellent alternative. They can visually represent approvals and extract signer information without triggering the strict cryptographic security locks that break page-spawning functionalities.




