Skip to main content
Participant
Aug 4, 2020 4:21 PM UTC
Question

Creating trustedfunction for addWatermarkFromFile

I'm brand new to Adobe programming and I'm trying to automate the conversion of an Excel worksheet into a PDF.  I need to add a footer and, through Google research, found out how to do it using "addWatermarkFromText".  Now I need to add an image to the header so I guess I'll have to use "addWatermarkFromFile".  I found out though that that function needs a "trustedfunction" wrapper and I don't know how to create one.  Apparently, you create the trustedfunction and save it to a particular folder.

 

Does anyone know how to do this?  Thanks very much for any help.

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

5 replies

try67
Community Expert
Community Expert
Aug 4, 2020 5:00 PM UTC
Euler2718Author
Participant
Aug 4, 2020 5:35 PM UTC

Yes, I've tried follow them.  I guess I'll have to keep trying.

Translate
Euler2718Author
Participant
Aug 4, 2020 4:59 PM UTC

Yes, I have a document called "Acrobat JavaScript Scripting Reference" that seems to be similar, if not identical, to the "JavaScript for Acrobat API Reference".

I'm afraid I still don't know how to compose the TrustedFunction wrapper.

 

Translate
Bernd Alheit
Community Expert
Community Expert
Aug 4, 2020 5:06 PM UTC

There are samples in the reference.

Translate