How to Fix Missing Digital Signature Actions on Spawned PDF Pages
Question details
Digital signature actions are lost on a spawned PDF page when it is created using the same field names as the original template without renaming them.

- Product
- Device & OS
- not provided
- Scenario
- A user is dynamically generating new PDF pages by spawning them from a template that contains digital signature fields.
- Observed behavior
- The newly spawned PDF page drops its digital signature actions because PDF forms cannot support multiple copies of the exact same digital signature field.
Before altering your template script, document your current form field names to easily track how they dynamically change after the spawning process.
Spawn the PDF Page with Renamed Fields
Use the built-in rename function during the spawn execution to generate unique names for the new signature fields.
A single PDF document cannot contain duplicate digital signature fields with the exact same name. When you spawn a page without renaming the fields, the signature capabilities are stripped from the new fields to prevent validation conflicts.
Open your PDF editing environment and access the JavaScript console or the specific button action used to spawn the template.
Find the template spawning method in your code and set the 'bRename' parameter to 'true'.
Run the script to generate the new page. The system will automatically prepend or append unique identifiers to the new signature fields, allowing them to retain their actions.

Add a New Signature Field Programmatically
Spawn a template without signature fields, and use a script to place a new signature field on the generated page.
Manage PDF Forms and Digital Signatures easily with WPS Office
WPS Office provides robust and intuitive PDF editing tools, allowing you to insert, manage, and sign digital signature fields without needing complex scripting.
- 1. Open your PDF Form: Launch WPS Office and open the PDF document that requires digital signatures.
- 2. Access the Form Tools: Navigate to the 'Form' tab on the top ribbon to view all interactive field options.
- 3. Insert Digital Signatures: Click on the Digital Signature tool and drag to place unique signature fields anywhere on your PDF pages.

Frequently Asked Questions
Why do digital signature fields stop working when duplicated?
PDF specifications mandate that digital signature fields must be unique. If two fields share the exact same name, it creates a security conflict. To prevent invalidating signatures or corrupting the document, the PDF reader strips the signature actions from the duplicated fields.
How does the 'bRename' parameter work in PDF scripting?
When the 'bRename' parameter is set to true during a template spawn action, it automatically alters the names of all fields on the newly generated page (usually by adding a prefix). This ensures every field remains unique and fully functional.
Can I manually copy and paste a digital signature field?
Yes, but you must manually rename the pasted field by opening its Properties menu. If you leave the names identical, signing one field may trigger an error or automatically apply the same signature to the duplicated field.




