Skip to main content
Inspiring
Mar 18, 2019 8:35 AM UTC
Answered

Unterschiedliches Wasserzeichen als Dateiname

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});

This topic is closed to new replies. Start a new post to keep the conversation going.
bisyvoCorrect answer
Inspiring
Mar 18, 2019 10:52 AM UTC

Wie kann ich dies programmieren? Habe leider keine Ahnung.

3 replies

Bernd Alheit
Community Expert
Community Expert
Mar 18, 2019 9:41 AM UTC

Duplicate posting.

Translate
bisyvoAuthorCorrect answer
Inspiring
Mar 18, 2019 10:52 AM UTC

Wie kann ich dies programmieren? Habe leider keine Ahnung.

Translate
try67
Community Expert
Community Expert
Mar 18, 2019 11:04 AM UTC

I answered your question in the original post.

Translate