Skip to main content
Known Participant
June 22, 2024
Answered

How to preset Signature field appearance properties with JavaScript?

  • June 22, 2024
  • 1 reply
  • 893 views

Our organization uses a lot of PDFs with digital sigantures. I'd like to simplify and improve the PDF Forms that I create by using JavaScript to preset the appearance of digital signatures on my forms. The vast majority of our users never use anything other than the default appearance.

 

The goal is that when the user clicks on the Signature field, the default appearance is the one I've specified. Everything needs to be included in the PDF and happen almost trasnparently. I can't distribute extra files to folks.

 

Specifically, I want only the signer's Common Name, Title, and Section/Office displayed (Maybe Date, too). I figure I'll need to repurpose "Reason" and "Location" properties for those. But I haven't been able to find a way to either embed a signature appearance file in my PDFs or use JavaScript on the signature field to cause it to display the right info. I've been digging through the SDK and Dev Guide, but use of security handlers and signatureInfo is incredibly vague to me 😞

 

Can anyone point me in the right direction here?

This topic has been closed for replies.
Correct answer try67

You can't do it without installing a script file on the local computer of the user.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
June 23, 2024

You can't do it without installing a script file on the local computer of the user.

Known Participant
July 10, 2024

That is incredibly disappointing to hear. 

To be clear, there's no way to programmatically set the Reason or Location part of a signature either? Those are both manual, unless you use a trusted script, right?

try67
Community Expert
Community Expert
July 10, 2024

As far as I can see, that's correct.