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

Unterschiedliches Wasserzeichen als Dateiname

Explorer ,
Mar 18, 2019 Mar 18, 2019

Copy link to clipboard

Copied

Good Morning
I would like to have a script where a query of the file name makes. It does not occur with every PDF, but. If so, this would also have to be cut off as in variant 1.
Thank you in advance for your help.

Variante 1

var mm = 2.83465;

this.addWatermarkFromText({cText: "Philips Bern,  " + this.documentFileName.split("-")[0], cFont: "Arial", nFontSize: 14, aColor: color.red,

    nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.bottom, nHorizValue: mm*10, nVertValue: mm*1.5});

Variante 2

var mm = 2.83465;

this.addWatermarkFromText({cText: "Philips Bern,  " + this.documentFileName.replace(".pdf", "",  split("-")[0]), cFont: "Arial", nFontSize: 14, aColor: color.red, nHorizAlign: app.constants.align.left, nVertAlign: app.constants.align.bottom, nHorizValue: mm*10, nVertValue: mm*1.5});

TOPICS
Acrobat SDK and JavaScript , Windows

Views

245

Likes

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

correct answers 1 Correct answer

Explorer , Mar 18, 2019 Mar 18, 2019

Wie kann ich dies programmieren? Habe leider keine Ahnung.

Likes

Translate

Translate
Community Expert ,
Mar 18, 2019 Mar 18, 2019

Copy link to clipboard

Copied

Duplicate posting.

Likes

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
Explorer ,
Mar 18, 2019 Mar 18, 2019

Copy link to clipboard

Copied

Wie kann ich dies programmieren? Habe leider keine Ahnung.

Likes

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 ,
Mar 18, 2019 Mar 18, 2019

Copy link to clipboard

Copied

LATEST

I answered your question in the original post.

Likes

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