Skip to main content
Known Participant
February 12, 2024
Question

Add Digitale Signatur in PDF automatically

  • February 12, 2024
  • 3 replies
  • 788 views

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 has been closed for replies.

3 replies

Thom Parker
Community Expert
Community Expert
February 14, 2024

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. 

 

 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
February 14, 2024

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

Bernd Alheit
Community Expert
Community Expert
February 14, 2024

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

Known Participant
February 14, 2024

Hi Bernd,

 

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

Bernd Alheit
Community Expert
Community Expert
February 14, 2024

Use the security object.