Passa al contenuto principale

Sicuro Word Documento in n8n

Sicuro Word Document è un PDF4me azione del nodo in n8n che blocca un .docx Un file protetto da password, con restrizioni di modifica o entrambe. Utilizzalo per proteggere report riservati prima dell'invio, impedire la modifica di un modello firmato o consentire ai revisori di commentare un contratto senza modificarne il testo.

Cosa fa questo nodo

PDF4me Word: Sicuro Word Document si applica due tipi di protezione indipendenti. Sicuro su aperto altro Apri la password decide se il file può essere aperto o meno. Tipo di protezione altro Password di protezione Decide cosa può essere modificato una volta aperto, da completamente in sola lettura a solo commenti, campi modulo o revisioni tracciate. Utilizzare una delle due opzioni o entrambe contemporaneamente.

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 le richieste di sicurezza dei documenti.

Informazioni importanti da non perdere

Due password, due lavori diversi
La password di apertura protegge il file. La password di protezione protegge la modifica. Impostare lo stesso valore per entrambe le password fornisce a un editor le chiavi di accesso a entrambe, vanificando lo scopo della restrizione.
Non digitare mai una password nel nodo
Qualsiasi dato inserito viene salvato direttamente nel flusso di lavoro. JSONche viene esportato e spesso sottoposto a commit su git. Utilizza un'espressione che legga una credenziale o una variabile d'ambiente.
La protezione è applicata, non è recuperabile.
Questa azione aggiunge protezione. Se le password vengono perse, non c'è modo di recuperarle tramite questo nodo, quindi è necessario memorizzare entrambi i valori prima che il flusso di lavoro venga eseguito su larga scala.
Il nodo Word di PDF4me in n8n con Operazione impostata su Documento Word protetto, Metodo di input file Word impostato su Dal nodo precedente, Protezione all'apertura attivata, Tipo di protezione impostato su Sola lettura e Nome file di output impostato su secure_document.docx

L'opzione "Proteggi all'apertura" è un interruttore, mentre il "Tipo di protezione" è un menu a tendina separato impostato su "Sola lettura". I due campi password sottostanti sono indipendenti l'uno dall'altro.

Password di apertura vs. restrizione di modifica

DomandaPassword di aperturaRestrizione di modifica
Which fields set itSecure On Open and Open PasswordProtection Type and Protection Password
What it blocksOpening the document at allChanging the document once open
Can the recipient read itOnly with the passwordYes, reading is always allowed
Typical recipientA named person receiving something confidentialA reviewer or a form filler
Use it whenThe content must not be seen by othersThe content may be seen but not altered

Quali parametri garantisce la sicurezza? Word Documento necessario?

ParametroNecessarioCosa faEsempio
Credential to connect withRequiredThe PDF4me account credential the node authenticates with.PDF4ME account
OperationRequiredThe action this node performs. Select Secure Word Document.Secure Word Document
Word File Input MethodRequiredHow the .docx reaches the node: from the previous node as binary data, as a Base64 string, or from a URL.From Previous Node (Binary Data)
Binary Data Property NameConditionalName of the binary property holding the document. Appears when the file comes from the previous node.data
Document NameRequiredFilename of the input document including the extension. Drives format detection.document.docx
Secure On OpenOptionalToggle that requires a password before the document will open. Leave off if you only want an editing restriction.enabled
Open PasswordConditionalThe password needed to open the file. Required once Secure On Open is enabled. Supply it through an expression, not as literal text.{{ $env.DOC_OPEN_PW }}
Protection TypeOptionalEditing restriction applied to the document: Read Only, Allow Comments, Allow Form Fields, or Allow Revisions.Read Only
Protection PasswordConditionalThe password that lifts the editing restriction. Required once a Protection Type is chosen, and should differ from Open Password.{{ $env.DOC_EDIT_PW }}
Output File NameOptionalFilename of the returned secured document. Keep the .docx extension.secured_document.docx
Output Binary Data NameOptionalBinary property the secured document is written to. Leave as data unless a later node expects another name.data

Opzioni del tipo di protezione

OpzioneCosa può fare il destinatario
Read OnlyView the document only. No edits of any kind are accepted.
Allow CommentsAdd and edit comments, but not change the document text itself.
Allow Form FieldsFill in form fields while the surrounding content stays locked.
Allow RevisionsEdit, but only with tracked changes recorded so every alteration is visible.

Produzione

CampoTipoCosa contiene
fileNameStringName of the returned secured document.
fileSizeNumberSize of the secured document in bytes.
successBooleanWhether protection was applied. Branch on this so failures surface as alerts.
originalFileNameStringName of the input document as supplied in Document Name.
secureOnOpenBooleanWhether an open password was applied, echoed back for verification.
protectionTypeStringThe editing restriction applied, such as ReadOnly, or empty when none was set.
messageStringHuman-readable status text describing the result of the operation.

Controllo protectionType nella risposta c'è il modo più economico per confermare che la restrizione che intendevi è quella che è stata effettivamente applicata.

Come si configura la sicurezza? Word Documento in n8n?

  1. Aggiungi il PDF4me Word nodo al tuo flusso di lavoro e impostalo Operazione A Sicuro Word Document.
  2. Seleziona il tuo PDF4me credenziali oppure creane una e incolla il tuo API chiave.
  3. Scegli un Word Metodo di immissione file e fornire il .docx attraverso il campo sottostante.
  4. Impostato Nome reale con l'estensione corretta.
  5. Per aprire il cancello, accendere Sicuro su aperto e impostare Apri la password da una credenziale o da una variabile d'ambiente.
  6. Per bloccare la modifica, impostare Tipo di protezione e fornire un diverso Password di protezione.
  7. Impostato Nome del file di output terminando in .docx.
  8. Esegui il nodo, conferma secureOnOpen E protectionType nella risposta, quindi inoltrare il file protetto.

Configurazioni tipiche

Esempi di flusso di lavoroCommon n8n workflow patterns using Secure Word Document.
Invia un rapporto riservato
  1. Una fase di reporting produce un documento contenente dati sensibili.
  2. Secure On Open applica una password memorizzata in una variabile d'ambiente.
  3. Il file viene inviato via email e la password viene condivisa tramite un canale separato.
Inviare un contratto per raccogliere commenti
  1. Il tipo di protezione è impostato su "Consenti commenti".
  2. I revisori annotano senza modificare il testo di alcuna clausola.
  3. Il feedback arriva senza una differenza da conciliare in seguito.
Distribuisci un modulo compilabile
  1. L'opzione "Consenti campi modulo" mantiene fisso il testo circostante.
  2. I destinatari compilano solo i campi a loro destinati.
  3. I moduli restituiti sono sufficientemente coerenti da consentire l'analisi automatica.
Blocca un modello approvato
  1. Un modello viene approvato e pubblicato su un'unità condivisa.
  2. La protezione di sola lettura impedisce modifiche locali silenziose.
  3. Tutti lavorano basandosi sulla stessa formulazione ufficiale.

Consigli pratici

Keep passwords out of the workflow
An expression reading a credential or environment variable keeps the secret out of exported workflow JSON and out of version control.
Use different values for the two passwords
Reusing one value means anyone who can open the file can also unlock editing, which removes the distinction you set up.
Pick the least restrictive type that works
Allow Comments or Allow Revisions often serves a review better than Read Only, because reviewers can still express changes.
Verify protectionType in the response
The echoed value confirms the restriction landed as intended, which is faster than opening a sample in Word every run.
Secure last in the chain
Watermarking, merging, and header updates all need an editable file. Apply protection after those steps, not before.
Record the passwords before scaling up
This action applies protection and offers no recovery. Store both values in your secret manager before running it across a batch.

Foglio riassuntivo

CampoValore
OperationSecure Word Document
Word File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
Document Namedocument.docx
Secure On Openenabled
Open Password{{ $env.DOC_OPEN_PW }}
Protection TypeRead Only
Protection Password{{ $env.DOC_EDIT_PW }}
Output File Namesecured_document.docx
Output Binary Data Namedata

Domande frequenti

What is the difference between the open password and the protection password?+
The open password gates the file itself: without it the document will not open at all. The protection password gates editing: the document opens for anyone but stays restricted until that second password is entered. They are separate fields and should hold different values, because a recipient who needs to read but not edit should only ever receive the first one.
What do the Protection Type options do?+
Read Only stops edits entirely. Allow Comments permits commenting but no text changes. Allow Form Fields permits filling fields while the rest stays locked. Allow Revisions permits editing only with tracked changes recorded. Microsoft describes the equivalent desktop behaviour under restricting changes in Word.
Where should I store the passwords in n8n?+
Not in the node. A password typed directly into either field is saved inside the workflow JSON, which gets exported, shared, and often committed to version control. Reference an n8n credential or an environment variable through an expression so the secret stays out of the workflow definition.
Can I apply both an open password and an editing restriction at once?+
Yes. Secure On Open and Protection Type are independent, so a document can require a password to open and still be read-only afterwards. That combination suits a confidential document a named recipient may read but nobody may alter.
How do I remove the protection later?+
Editing restrictions are lifted in Word by supplying the protection password, and the open password is entered when the file is opened. Keep both values in your secret store rather than relying on memory, because this action applies protection and there is no recovery path through it if the passwords are lost.

Azioni correlate

Stessa attività su altre piattaforme

Richiedi assistenza