• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Creating trustedfunction for addWatermarkFromFile

New Here ,
Aug 04, 2020 Aug 04, 2020

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript

Views

527

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 04, 2020 Aug 04, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2020 Aug 04, 2020

Copy link to clipboard

Copied

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.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 04, 2020 Aug 04, 2020

Copy link to clipboard

Copied

There are samples in the reference.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 04, 2020 Aug 04, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2020 Aug 04, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines