abracadabraPDF › Forums › PDF – Général › Signature automatisée toutes les 4 pages › Répondre à : Signature automatisée toutes les 4 pages
11 juin 2019 à 14:33
#65746

Maître des clés
bonjour,
Désolé pour cette réponse un peu tardive, mais on peut faire cela en une seule action avec le script :
Code:
var Chemin=this.path;
var Document=this.documentFileName;
var ceDossier=Chemin.substring(0,Chemin.length-(this.documentFileName.length));
for (var i=0; i this.addWatermarkFromFile({
cDIPath: ceDossier+”b2.pdf”, // nom du fichier filigrane #1
nStart: i,
nEnd: i,
bOnTop: false, // sous le reste
nHorizAlign: app.constants.align.left, // haut de page
nVertAlign: app.constants.align.top, // marge gauche
nHorizValue: 100*72/25.4, // position 100 mm à droite
nVertValue: -20*72/25.4, // position 20 mm du haut
nScale: 0.25, // échelle du filigrane
nRotation: 0, // rotation du filigrane
nOpacity: 1 // transparence du filigrane
});
this.addWatermarkFromFile({
cDIPath: ceDossier+”b2.pdf”, // nom du fichier filigrane #2
nStart: i,
nEnd: i,
bOnTop: false, // sous le reste
nHorizAlign: app.constants.align.left, // haut de page
nVertAlign: app.constants.align.bottom, // marge gauche
nHorizValue: 0, // position 100 mm à droite
nVertValue: 0, // position 20 mm du haut
nScale: 0.15, // échelle du filigrane
nRotation: 45, // rotation du filigrane
nOpacity: 0.75 // transparence du filigrane
});
}
var Document=this.documentFileName;
var ceDossier=Chemin.substring(0,Chemin.length-(this.documentFileName.length));
for (var i=0; i
cDIPath: ceDossier+”b2.pdf”, // nom du fichier filigrane #1
nStart: i,
nEnd: i,
bOnTop: false, // sous le reste
nHorizAlign: app.constants.align.left, // haut de page
nVertAlign: app.constants.align.top, // marge gauche
nHorizValue: 100*72/25.4, // position 100 mm à droite
nVertValue: -20*72/25.4, // position 20 mm du haut
nScale: 0.25, // échelle du filigrane
nRotation: 0, // rotation du filigrane
nOpacity: 1 // transparence du filigrane
});
this.addWatermarkFromFile({
cDIPath: ceDossier+”b2.pdf”, // nom du fichier filigrane #2
nStart: i,
nEnd: i,
bOnTop: false, // sous le reste
nHorizAlign: app.constants.align.left, // haut de page
nVertAlign: app.constants.align.bottom, // marge gauche
nHorizValue: 0, // position 100 mm à droite
nVertValue: 0, // position 20 mm du haut
nScale: 0.15, // échelle du filigrane
nRotation: 45, // rotation du filigrane
nOpacity: 0.75 // transparence du filigrane
});
}
Il faudra adapter le script avec les valeurs qui vont bien !!!
@+
:bonjour: