Aller au contenu principal

Ajouter un filigrane d'image à Word Document dans n8n

Ajouter un filigrane d'image à Word est un PDF4me action de nœud dans n8n qui imprime une image sur un Word Utilisez-le pour personnaliser les rapports sortants avec le logo de l'entreprise, annoter les brouillons avant relecture ou apposer un badge de confidentialité sur chaque contrat généré par un flux de travail, sans ouvrir un seul fichier. Word.

Que fait ce nœud ?

PDF4me Word: Ajouter un filigrane d'image à Word nécessite deux entrées, et non une seule : le .docx fichier à tamponner et le image pour y apposer un filigrane. Chacun possède sa propre liste déroulante de méthode d'entrée, de sorte que le document et le filigrane peuvent provenir de chemins différents, par exemple un document provenant d'un nœud précédent et un logo récupéré d'un URLLe dimensionnement est par Échelle sauf si vous définissez explicitement Largeur ou Hauteur en points.

Articles de blog connexes
Il n'y a pas encore d'article de blog consacré à cette fonctionnalité — à venir prochainement.
En attendant, n'hésitez pas à consulter le blog de PDF4me pour découvrir des tutoriels et des procédures de travail adaptés à toutes les plateformes.
Consultez le blog

Authentification de votre API Demande

Chaque PDF4me nœud dans n8n nécessite une authentification valide. Créez ou sélectionnez-en une qui contient votre identifiant. PDF4me API clé permettant au flux de travail d'authentifier les demandes de filigrane de manière sécurisée.

Informations importantes à ne pas manquer

Deux champs de saisie, deux listes déroulantes
Le Word Le fichier et l'image du filigrane sont configurés séparément, chacun avec son propre sélecteur de méthode d'entrée. Le fait de configurer l'un et d'oublier l'autre est la raison la plus fréquente pour laquelle le nœud refuse de s'exécuter.
Une largeur et une hauteur de 0 signifient utiliser l'échelle
Les deux champs de dimension sont initialisés à 0, ce qui ne correspond pas à un filigrane de taille nulle, mais à une instruction pour dimensionner l'image selon le facteur d'échelle. N'entrez des points dans l'un ou l'autre champ que si vous avez besoin d'une taille précise.
Utilisez un transparent PNG
UN JPEG N'ayant pas de canal alpha, son fond blanc masque le texte en dessous. PNG C’est la transparence réelle qui permet à un filigrane d’être perçu comme un filigrane plutôt que comme un simple encadré collé.
Le nœud PDF4me Word dans n8n avec l'opération définie sur Ajouter un filigrane image à Word, la méthode d'entrée du fichier Word définie sur Télécharger depuis une URL, la méthode d'entrée de l'image du filigrane définie sur À partir du nœud précédent, l'échelle 1, la largeur et la hauteur 0 et l'alignement centré activé

Notez les deux méthodes de saisie indépendantes : Word le fichier arrive par URL L'image du filigrane provient du nœud précédent. La largeur et la hauteur sont égales à 0 ; l'échelle 1 contrôle donc la taille.

Filigrane image vs filigrane texte dans Word

QuestionAjouter un filigrane d'image à WordAjouter un filigrane de texte à Word
What gets stampedAn image file such as a logo, seal, or badgeA word or phrase you type, such as DRAFT
Second input neededYes, the image file itselfNo, only the text string
Changing it per runSwap the image binary or URLChange the text with an expression
Best forCompany branding and scanned marksStatus labels and per-document text
Transparency controlSemi-Transparent toggle plus PNG alphaHandled through the text styling options

Quels paramètres permettent d'ajouter un filigrane à l'image ? Word Besoin?

Le Word Le fichier et l'image du filigrane possèdent chacun une liste déroulante de méthode de saisie. Quelle que soit la méthode choisie, le champ source correspondant apparaît juste en dessous, et les lignes conditionnelles suivantes s'adaptent en fonction de votre sélection.

ParamètreRequisCe que cela faitExemple
Credential to connect withRequiredThe PDF4me API credential the node authenticates with.PDF4me account
OperationRequiredThe action this node performs. Select Add Image Watermark To Word.Add Image Watermark To Word
Word File Input MethodRequiredHow the .docx reaches the node: from the previous node as binary data, as a Base64 string, or downloaded from a URL.Download from URL
Word File URLConditionalPublic URL of the .docx to stamp. Appears only when the Word file input method is set to download from a URL.https://example.com/file.docx
Document NameRequiredFilename of the input document including the extension. Used for format detection, so keep the .docx suffix accurate.document.docx
Watermark Image Input MethodRequiredHow the image reaches the node. Independent of the Word file input method, so the two can differ.From Previous Node (Binary Data)
Image Binary Data Property NameConditionalName of the binary property holding the watermark image. Appears when the image comes from the previous node.data
ScaleOptionalSize multiplier applied to the image at its natural size. Ignored when a non-zero Width or Height is supplied.1
Width (Points)OptionalExact watermark width in points. Leave at 0 to size by Scale. Setting only Width keeps the aspect ratio.0
Height (Points)OptionalExact watermark height in points. Leave at 0 to size by Scale. Setting only Height keeps the aspect ratio.0
Center AlignmentOptionalToggle that centres the watermark on the page. Ships enabled; turn it off to align to the top left within the margins.enabled
Semi-TransparentOptionalToggle that reduces watermark opacity so page text stays readable underneath. Ships disabled.disabled
Culture NameOptionalCulture code recorded for document processing, such as en-US or de-DE.en-US
Output File NameOptionalFilename of the returned document. Keep the .docx extension so downstream steps handle it correctly.word_with_watermark.docx
Output Binary Data NameOptionalBinary property the stamped document is written to. Leave as data unless a later node expects another name.data

Sortir

ChampTaperCe qu'il contient
fileNameStringName of the returned watermarked document, taken from Output File Name.
fileSizeNumberSize of the returned document in bytes. A useful sanity check that the image was embedded.
successBooleanWhether the watermark was applied. Branch on this so failures surface as alerts.
originalFileNameStringName of the input document as supplied in Document Name.
scaleNumberThe scale factor actually applied, echoed back for verification.
alignImageBooleanWhether centre alignment was used, reflecting the Center Alignment toggle.
semiTransparentBooleanWhether reduced opacity was applied, reflecting the Semi-Transparent toggle.
cultureNameStringThe culture code recorded for the operation.
messageStringHuman-readable status text describing the result of the operation.

Le document estampillé lui-même est renvoyé sous forme binaire sur la propriété nommée dans Nom des données binaires de sortie, prêt à être enregistré, joint à un courriel ou intégré à un PDF étape de conversion.

Comment configurer l'ajout d'un filigrane image à Word dans n8n?

  1. Ajoutez le PDF4me Word Ajoutez un nœud à votre flux de travail et définissez Opération à Ajouter un filigrane d'image à Word.
  2. Sélectionnez votre PDF4me Veuillez utiliser vos identifiants ou en créer un et y coller votre code d'identification. API clé.
  3. Choisissez un Word Méthode d'entrée de fichier et fournir le .docx à travers le champ qui apparaît en dessous.
  4. Ensemble Nom du document donc le .docx L'extension est présente et correcte.
  5. Choisissez un Méthode de saisie d'image de filigrane, puis pointez Nom de la propriété des données binaires de l'image sur le site qui détient l'image, généralement data.
  6. Partir Largeur (points) et Hauteur (Points) à 0 et ajuster Échelle, ou définissez des valeurs de points explicites lorsque la taille doit être exacte.
  7. Allumer Semi-transparent si le filigrane se superpose au texte principal, laissez-le tel quel. Alignement central activé sauf si vous souhaitez une marque en haut à gauche.
  8. Ensemble Nom du fichier de sortie se terminant par .docx, exécutez le nœud et acheminez le résultat vers la suite.

Configurations typiques

Exemples de flux de travailCommon n8n workflow patterns using Add Image Watermark To Word.
Apposez une marque sur chaque rapport sortant
  1. Une étape de reporting produit un Word documenter selon un calendrier.
  2. Ajouter un filigrane d'image à Word y appose le logo de l'entreprise.
  3. Le fichier personnalisé est envoyé par courriel à la liste de diffusion.
Indiquer les documents comme brouillons jusqu'à leur approbation
  1. Un contrat atterrit dans un dossier de révision.
  2. L'image du badge DRUFT est estampillée avec l'option Semi-Transparent activée.
  3. Les relecteurs ne peuvent jamais confondre la version de travail avec la version finale.
Filigrane puis convertir en PDF
  1. Le logo est appliqué alors que le fichier est encore modifiable. Word.
  2. Une étape de conversion transforme le document estampillé en un PDF.
  3. Le PDF est publié, la marque étant intégrée plutôt qu'apposée ultérieurement.
Estampiller par lots une archive
  1. Une liste de dossiers génère un élément par fichier .docx existant.
  2. Le nœud s'exécute une fois par élément avec la même image de filigrane.
  3. Les copies estampillées sont réécrites sous de nouveaux noms de fichiers.

Conseils pratiques

Start with a transparent PNG
Alpha transparency is what separates a watermark from a pasted rectangle. Export the logo with a transparent background before wiring it in.
Tune Scale before touching Width
Scale keeps the aspect ratio automatically. Reach for explicit point values only when a brand guideline demands an exact size.
Enable Semi-Transparent over body text
A full-opacity mark in the centre of a text page hides content. The toggle exists precisely for documents that are meant to stay readable.
Check the two input methods separately
The document and the image are configured independently, so a run can fail because the image source is unset while the Word source looks fine.
Verify one file before a batch
Open a single stamped document in Word and confirm placement and opacity, then run the workflow across the rest.
Keep the .docx extension
Both Document Name and Output File Name drive format handling. A missing or wrong extension causes confusing downstream failures.

Aide-mémoire

ChampValeur
OperationAdd Image Watermark To Word
Word File Input MethodDownload from URL
Word File URLhttps://example.com/file.docx
Document Namedocument.docx
Watermark Image Input MethodFrom Previous Node (Binary Data)
Image Binary Data Property Namedata
Scale1
Width (Points) / Height (Points)0 / 0
Center Alignmentenabled
Semi-Transparentdisabled
Culture Nameen-US
Output File Nameword_with_watermark.docx
Output Binary Data Namedata

Questions fréquentes

What image formats can I use as a Word watermark?+
Standard raster image formats work, and a PNG with a transparent background gives the cleanest result because page text stays visible around the logo. A JPEG has no alpha channel, so it stamps an opaque rectangle unless you also enable Semi-Transparent. The PNG specification covers the alpha channel behaviour that makes this work.
Why are Width and Height set to 0 by default?+
Zero means unset, not a zero-size watermark. When both are 0 the image is sized by the Scale factor, where 1 is its natural size. Entering a non-zero point value in either field overrides Scale, and supplying only one of the two preserves the aspect ratio by calculating the other.
Does the watermark appear on every page of the document?+
The action applies the watermark to the document rather than to a single page you nominate, so it suits stamping a whole file such as a contract or report. Run one representative multi-page document through the node and open the result in Word before rolling it out across a batch.
What is the difference between the image and text watermark actions?+
Add Image Watermark To Word stamps a picture such as a company logo or scanned seal and needs an image as a second input. Add Text Watermark To Word Document renders a word or phrase you type, so it needs no image file and is easier to vary per run with an expression.
Can I watermark many Word files in one n8n run?+
Yes. The node processes one document per item, so feed it a list of files from a trigger, a folder listing, or an n8n looping node and the action executes once per item. The same watermark image can be reused across the whole run.

Actions connexes

Même tâche sur d'autres plateformes

Obtenez de l'aide