Passa al contenuto principale

Aggiungi filigrana di testo a Excel In n8n

Aggiungi filigrana di testo è un PDF4me Excel operazione in n8n che applica un'etichetta di testo personalizzata come RISERVATO o BOZZA sui fogli di lavoro in una cartella di lavoro .xlsx. Usalo per contrassegnare fogli di calcolo sensibili, segnalare bozze prima della revisione o applicare automaticamente il marchio aziendale, senza modifiche manuali. Excel.

Cosa fa questo nodo

PDF4me Excel: Aggiungi filigrana di testo applica una filigrana di testo in stile WordArt su Excel Fogli di lavoro con controllo su tipo di carattere, dimensione del testo in punti, colore del testo, grassetto e corsivo, trasparenza, angolo di rotazione e una griglia di posizionamento a nove posizioni. La selezione dei fogli di lavoro decide se la filigrana viene applicata a tutti i fogli o solo a quelli specificati. Ideale per etichette di riservatezza, indicatori di bozza, avvisi di copyright e personalizzazione automatizzata dei fogli di calcolo.

Articoli correlati del blog
Non ci sono ancora post sul blog dedicati a questa funzionalità — in arrivo a breve.
Nel frattempo, dai un'occhiata al blog di PDF4me per trovare tutorial e procedure operative su tutte le piattaforme.
Visita il blog

Autenticazione del tuo API Richiesta

Ogni PDF4me nodo in n8n richiede un valido Credenziali per connettersi con. Crea o selezionane uno che contenga il tuo PDF4me API chiave affinché il flusso di lavoro possa autenticare in modo sicuro le richieste di filigrana.

Informazioni importanti da non perdere

La dimensione del testo è un valore in punti, non un codice preimpostato.
Inserisci direttamente la dimensione desiderata. Un valore di 20 visualizzerà una filigrana di 20 punti e la risposta mostrerà textSize 20. Aumenta il valore a 72 o superiore per ottenere un aspetto diagonale a larghezza intera.
La selezione del foglio di lavoro consente di accedere all'intera cartella di lavoro.
L'opzione "Tutti i fogli di lavoro" contrassegna ogni foglio e riporta "worksheetSelection 0" nella risposta. Il passaggio a una selezione specifica individua i fogli in base al nome o all'indice a base zero e riporta "worksheetSelection 1".
Trasparenza 0 significa solido, non invisibile
La scala va da 0 a 100, dove 0 corrisponde alla completa opacità e 100 alla completa trasparenza. Il valore predefinito di 0 produce una filigrana solida, quindi è consigliabile aumentarlo a circa 50 quando i dati sottostanti devono rimanere leggibili.
Nodo Excel di PDF4me in n8n impostato su Operazione Aggiungi filigrana di testo, Metodo di input file Excel dal nodo precedente (dati binari), Nome proprietà dati binari data, Testo filigrana RISERVATO, Famiglia carattere Arial, Dimensione testo 20, Grassetto attivo, Corsivo disattivato, Colore testo #808080, Trasparenza 50, Angolo di rotazione -45, Posizione Centro, Selezione foglio di lavoro Tutti i fogli di lavoro, Nome file di output excel_with_watermark.xlsx, Nome documento sorgente myExcelFile.xlsx, Nome dati binari di output data

PDF4me Excel Aggiungi il pannello dei parametri della filigrana di testo in n8n

Quali parametri sono necessari per aggiungere una filigrana di testo?

Necessario: Operazione, Excel Metodo di immissione file, il campo di input corrispondente a tale metodo, il testo della filigrana e il nome del file di output. I campi di stile (famiglia di caratteri, dimensione del testo, colore del testo, grassetto, corsivo, trasparenza, angolo di rotazione, posizione) sono tutti forniti con impostazioni predefinite funzionanti, mentre il nome del documento sorgente e il nome dei dati binari di output sono etichette opzionali.

ParametroNecessarioCosa faEsempio
OperationRequiredSelects the PDF4me Excel action to run. Choose Add Text Watermark.Add Text Watermark
Excel File Input MethodRequiredHow the workbook reaches the node. From Previous Node (Binary Data) reads it from an upstream item; the dropdown also offers base64 and file URL alternatives.From Previous Node (Binary Data)
Binary Data Property NameConditionalName of the binary property on the incoming n8n item that holds the .xlsx workbook. Applies when the input method is binary data. Defaults to data.data
Watermark TextRequiredThe text stamped across the worksheet. Accepts any string, including expressions mapped from earlier nodes.CONFIDENTIAL
Font FamilyOptionalFont used to render the watermark, chosen from the dropdown of available families.Arial
Text SizeOptionalWatermark size in points, entered directly. The response echoes the same number back as textSize.20
BoldOptionalToggle that applies bold weight to the watermark text. Off by default.true
ItalicOptionalToggle that applies italic styling to the watermark text. Off by default.false
Text ColorOptionalWatermark colour, set through the colour picker or as a hex code.#808080
TransparencyOptionalTransparency from 0 (fully opaque) to 100 (fully invisible). Default 0.50
Rotation AngleOptionalRotation in degrees. 0 is horizontal, negative values tilt anticlockwise for the classic diagonal watermark.-45
PositionOptionalPlacement on the sheet, picked from a nine-cell grid running Top Left through Bottom Right. Returned as a numeric code in the response.Center
Worksheet SelectionOptionalAll Worksheets watermarks every sheet. Switching to a specific selection lets you target sheets by name or zero-based index.All Worksheets
Output File NameRequiredFilename for the watermarked workbook the node returns. Include the .xlsx extension.excel_with_watermark.xlsx
Source Document NameOptionalReference label for the incoming workbook. Echoed back as originalFileName for tracking; it does not change the output.myExcelFile.xlsx
Output Binary Data NameOptionalName of the binary property the output item exposes. Defaults to data.data

Campi di output

Una corsa di successo restituisce uno n8n trasporto dell'oggetto JSON metadati più la cartella di lavoro con filigrana come dati binari.

CampoTipoCosa contiene
successBooleanTrue when the watermark was applied successfully. Use it to route error-handling branches.
fileNameStringFilename of the watermarked workbook, matching Output File Name.
fileSizeNumberSize of the returned workbook in bytes.
originalFileNameStringThe value supplied in Source Document Name, echoed back for tracking.
watermarkTextStringThe text that was stamped onto the worksheets.
fontFamilyStringFont family used to render the watermark.
textSizeNumberWatermark size in points, matching the Text Size input.
isBoldBooleanWhether bold weight was applied.
isItalicBooleanWhether italic styling was applied.
textColorStringWatermark colour as a hex value.
transparencyNumberTransparency level applied, from 0 to 100.
rotationAngleNumberRotation in degrees applied to the watermark.
positionNumberNumeric code for the placement cell used on the nine-position grid.
worksheetSelectionNumber0 when every worksheet was watermarked, 1 when a specific selection was targeted.
selectedWorksheetNamesArrayWorksheet names targeted, empty when all worksheets were processed.
selectedWorksheetIndexesArrayZero-based worksheet indexes targeted, empty when all worksheets were processed.
messageStringHuman-readable result message for the operation.
Binary (data)BinaryThe watermarked .xlsx under Output Binary Data Name (default data). Pass into Write Binary File, Email, or a cloud-storage upload.

N8N Risposta all'azione

IL PDF4me Aggiungi filigrana di testo l'operazione restituisce una risposta che puoi esaminare in diversi formati all'interno n8n:

JSON Formato di risposta

[
{
"fileName": "excel_with_watermark.xlsx",
"fileSize": 219605,
"success": true,
"originalFileName": "myExcelFile.xlsx",
"watermarkText": "CONFIDENTIAL",
"fontFamily": "Arial",
"textSize": 20,
"isBold": true,
"isItalic": false,
"textColor": "#808080",
"transparency": 50,
"rotationAngle": -45,
"position": 1,
"worksheetSelection": 1,
"selectedWorksheetNames": [],
"selectedWorksheetIndexes": [],
"message": "Text watermark added to Excel file successfully"
}
]

Come impostare Aggiungi filigrana di testo in n8n?

  1. Aggiungi il PDF4me Excel nodo al tuo n8n flusso di lavoro e impostazione Operazione A Aggiungi filigrana di testo.
  2. In Credenziali per connettersi con, seleziona il tuo PDF4me API credenziali o creane una e incolla il tuo API chiave.
  3. Impostato Excel Metodo di immissione file A Dal nodo precedente (dati binari) e impostare Nome della proprietà dei dati binari alla proprietà che contiene la cartella di lavoro, normalmente data.
  4. Inserisci Testo della filigrana, Per esempio CONFIDENTIAL.
  5. Personalizza la filigrana con Famiglia di caratteri, Dimensione del testo (in punto), Colore del testo, Grassetto, E Corsivo.
  6. Regola la visibilità e il posizionamento con Trasparenza, Angolo di rotazione, E Posizione.
  7. Impostato Selezione del foglio di lavoro A Tutti i fogli di lavoro o indirizzare fogli specifici.
  8. Impostato Nome del file di output terminando in .xlsx, quindi esegui il nodo e inoltra la cartella di lavoro con la filigrana.

Configurazioni tipiche

Esempi di flusso di lavoroCommon n8n workflow patterns using Add Text Watermark for Excel.
Etichetta RISERVATO prima della condivisione esterna
  1. Un trigger di Google Drive si attiva quando una cartella di lavoro viene inserita in una cartella in uscita.
  2. PDF4me Excel Esegue Aggiungi filigrana di testo con testo filigrana RISERVATO, colore del testo rosso, trasparenza 50.
  3. La cartella di lavoro con filigrana viene inviata via e-mail al destinatario e archiviata nuovamente su Drive.
Contrassegno diagonale BOZZA sui report programmati
  1. Un trigger di pianificazione crea una cartella di lavoro con i dati settimanali a partire da un'esportazione del database.
  2. Aggiungi filigrana di testo con testo filigrana BOZZA, angolo di rotazione -45, trasparenza 50, posizione centrata.
  3. La bozza viene pubblicata su un canale di revisione Slack prima dell'approvazione finale.
Nome del cliente stampato su ogni record
  1. Un nodo Loop Over Items itera le righe client da un CRM esportazione.
  2. Il testo della filigrana viene mappato da un'espressione in modo che ogni cartella di lavoro riporti il nome del cliente.
  3. Ogni output viene scritto nel servizio di archiviazione cloud utilizzando l'ID del client come nome del file.
Solo foglio riassuntivo, lasciando i dati grezzi puliti
  1. Un webhook riceve una cartella di lavoro di reporting completata da uno strumento interno.
  2. La selezione del foglio di lavoro si concentra sul foglio di riepilogo, lasciando non selezionate le schede dei dati grezzi.
  3. Il risultato viene caricato su SharePoint per la distribuzione.

Consigli pratici

Text Size is points, not a preset
Type the point size you actually want. There is no 1 to 4 preset scale, so 20 means 20 points and 100 means a full-width banner.
Raise Transparency before raising size
A large opaque watermark hides cell values. Set Transparency near 50 first, then increase Text Size for coverage.
Rotation -45 gives the classic look
Negative angles tilt anticlockwise. Pair Rotation Angle -45 with Position Center for the traditional diagonal watermark.
Worksheet indexes are zero-based
When targeting sheets by index, the first worksheet is 0, not 1. Mixing this up silently watermarks the wrong tab.
Output File Name needs the .xlsx extension
Omitting the extension can leave downstream nodes unable to detect the format when writing or emailing the file.
Source Document Name is reference-only
It is echoed back as originalFileName for tracking and does not affect the watermark or the output filename.

Foglio riassuntivo

CampoValore
OperationAdd Text Watermark
Excel File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
Watermark TextCONFIDENTIAL
Font FamilyArial
Text Size20 (points)
Text Color#808080
Transparency50
Rotation Angle-45
PositionCenter
Worksheet SelectionAll Worksheets
Output File Nameexcel_with_watermark.xlsx
Output Binary Data Namedata
CredentialsPDF4me API credential

Domande frequenti

Is Text Size a point value or a preset number?+
Text Size is a direct point value, not a preset code. Entering 20 renders the watermark at 20 points and the response echoes textSize 20. Larger values such as 72 or 100 produce the full-page watermark look used on confidential copies.
Can I watermark only some worksheets instead of the whole workbook?+
Yes. Worksheet Selection controls this. All Worksheets applies the watermark everywhere and the response reports worksheetSelection 0. Choosing a specific selection lets you target worksheets by name or by zero-based index, and the response reports worksheetSelection 1.
How do I get the classic diagonal watermark look?+
Set Rotation Angle to a value such as -45 for a tilted watermark, raise Transparency to around 50 so cell contents stay readable underneath, and set Position to Center so the text sits across the middle of the sheet.
What does Transparency 0 mean?+
Transparency runs from 0 to 100 where 0 is fully opaque and 100 is fully invisible. The default is 0, which renders a solid watermark. Values around 40 to 60 are the usual choice when the watermark must not obscure the data.
What is the difference between Output File Name and Source Document Name?+
Output File Name is the filename of the watermarked workbook the node produces. Source Document Name is a reference label for the incoming file and is echoed back as originalFileName in the response, so it is useful for tracking rather than for controlling output.
Does the watermark support dynamic text from earlier nodes?+
Yes. Watermark Text accepts any string, so you can map an n8n expression into it, for example a client name or a generated timestamp from an upstream node, using the syntax described in the n8n expressions documentation.
Why not just use the built-in Excel watermark feature?+
Excel has no dedicated watermark button. The manual route is inserting WordArt or a header image on every sheet by hand, which does not scale past a handful of files. Running the operation through n8n applies the same visual result to every workbook in a workflow without opening Excel, and it can be chained with other n8n workflow steps.

Azioni correlate

Stessa attività su altre piattaforme

Richiedi assistenza