Skip to main content
Known Participant
Feb 12, 2024 10:42 PM UTC
Question

Add Digitale Signatur in PDF automatically

Hello community,

 

I want to put Digitale Signatur automatically on first page per Button.

Please look in my txt file.  There is my code.  But it is not working.  app.security is undefined.

What do I have to adjust in my code?

 

Best Regards

Josh

 

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

Thom Parker
Community Expert
Community Expert
Feb 14, 2024 6:02 PM UTC

Here's the reference entry for the "field.signatureSign()" function:

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#id652

 

There are a couple of examples provided in the reference.   Please stick with the actual real Acrobat JavaScript functions that are provided in the reference, rather than code that looks like it was hallucinated by ChaptGPT. 

 

 

 

 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
Feb 14, 2024 11:17 AM UTC

security is a stand-alone object, not a property of app.

Translate
Bernd Alheit
Community Expert
Community Expert
Feb 14, 2024 9:50 AM UTC

app.security is not available in Acrobat. Why do you use it?

Translate
Known Participant
Feb 14, 2024 2:19 PM UTC

Hi Bernd,

 

what can I change in Code that Code is running? I don't have to use app.security. Ok I understand.

Translate
Bernd Alheit
Community Expert
Community Expert
Feb 14, 2024 3:06 PM UTC

Use the security object.

Translate