Skip to main content
Inspiring
mars 7, 2019 3:04 PM UTC
Répondu

Dateiname soll als Wasserzeichen zugefügt werden

Liebe User

Ich möchte mit einer Stapelverarbeitung in Adobe Acrobat DC Pro mit Javascript ein Wasserzeichen setzen wo jeweils der Dateiname ohne Endung aufgeführt wird.

Vorab sollte Philips Bern, stehen. Die Farbe ist rot, Schrift 14 Arial und 10mm vom linken Rand und 1.5 mm vom unteren Rand sein.

Wer kann mir helfen? Im Voraus vielen Dank.

Ce sujet a été fermé aux réponses.
try67
try67Réponse
Community Expert
mars 7, 2019 3:18 PM UTC

If I understand you correctly (my German is a bit rusty), this should do the trick:

var mm = 2.83465;

this.addWatermarkFromText({cText: "Philips Bern - " + this.documentFileName.replace(".pdf", ""), cFont: "Arial", nFontSize: 14, aColor: color.red,

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

2 commentaires

try67
Community Expert
try67Community ExpertRéponse
Community Expert
mars 7, 2019 3:18 PM UTC

If I understand you correctly (my German is a bit rusty), this should do the trick:

var mm = 2.83465;

this.addWatermarkFromText({cText: "Philips Bern - " + this.documentFileName.replace(".pdf", ""), cFont: "Arial", nFontSize: 14, aColor: color.red,

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

Traduire
bisyvoAuteur
Inspiring
mars 7, 2019 4:48 PM UTC

Danke viel mal für die Antwort. Ich werde es morgen im Büro gleich testen. Einen schönen Abend.

Traduire