Zum Hauptinhalt springen

Sicher Word Dokument in n8n

Sicher Word Dokumentieren ist ein PDF4me Knotenaktion in n8n das sperrt .docx Datei mit Passwort, Bearbeitungsbeschränkung oder beidem. Verwenden Sie es, um vertrauliche Berichte vor dem Versand zu schützen, die Änderung einer signierten Vorlage zu verhindern oder Prüfern die Möglichkeit zu geben, einen Vertrag zu kommentieren, ohne dessen Text zu verändern.

Was dieser Knoten bewirkt

PDF4me Word: Sicher Word Dokumentieren gilt zwei unabhängige SchutzartenDie Sicher bei geöffnetem Zustand plus Passwort öffnen entscheidet, ob die Datei überhaupt geöffnet wird. Schutzart plus Schutzpasswort Legt fest, was nach dem Öffnen geändert werden darf – von reinem Lesezugriff bis hin zu Kommentaren, Formularfeldern oder nachverfolgten Änderungen. Sie können entweder das eine oder das andere oder beides gleichzeitig verwenden.

Verwandte Blog-Beiträge
Zu dieser Funktion gibt es noch keinen Blogbeitrag – folgt in Kürze.
Schauen Sie sich in der Zwischenzeit im PDF4me-Blog Tutorials und Arbeitsabläufe für alle Plattformen an.
Besuchen Sie den Blog

Authentifizierung Ihres API Anfrage

Jeder PDF4me Knoten in n8n erfordert eine gültige Anmeldeinformationen zum Verbinden mitErstellen oder wählen Sie einen Eintrag aus, der Ihre Daten enthält. PDF4me API Schlüssel, damit der Workflow Dokumentensicherheitsanforderungen authentifizieren kann.

Wichtige Fakten, die Sie nicht verpassen sollten

Zwei Passwörter, zwei verschiedene Jobs
Das Öffnen der Datei ist durch ein Passwort geschützt. Das Bearbeiten der Datei wird durch ein Schutzpasswort verhindert. Werden beide auf denselben Wert gesetzt, erhält ein Bearbeiter Zugriff auf beide, was den Sinn der Beschränkung zunichtemacht.
Geben Sie niemals ein Passwort in den Knoten ein.
Alles, was direkt eingegeben wird, landet im gespeicherten Workflow. JSONDiese Daten werden exportiert und häufig in Git eingecheckt. Verwenden Sie einen Ausdruck, der Anmeldeinformationen oder eine Umgebungsvariable liest.
Der Schutz ist aktiviert, er ist nicht rückgängig zu machen.
Diese Maßnahme erhöht den Schutz. Sollten die Passwörter verloren gehen, gibt es keinen Weg zurück über diesen Knoten. Speichern Sie daher beide Werte, bevor der Workflow in großem Umfang ausgeführt wird.
Der PDF4me Word-Knoten in n8n mit der Operation „Word-Dokument sichern“, der Word-Datei-Eingabemethode „Vom vorherigen Knoten“, der Option „Beim Öffnen sichern“ aktiviert, dem Schutztyp „Schreibgeschützt“ und dem Ausgabedateinamen „secured_document.docx“.

„Beim Öffnen sichern“ ist ein Schalter, und der Schutztyp ist ein separates Dropdown-Menü, das hier auf „Schreibgeschützt“ eingestellt ist. Die beiden darunter liegenden Passwortfelder sind voneinander unabhängig.

Passwort öffnen vs. Bearbeitungsbeschränkung

FragePasswort öffnenBearbeitungsbeschränkung
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

Welche Parameter sichert Word Dokumentbedarf?

ParameterErforderlichWas es tutBeispiel
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

Optionen für den Schutztyp

OptionWas der Empfänger tun kann
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.

Ausgabe

FeldTypWas es enthält
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.

Überprüfung protectionType Die Antwort ist der günstigste Weg, um zu bestätigen, dass die von Ihnen beabsichtigte Einschränkung auch tatsächlich umgesetzt wurde.

Wie richte ich Secure ein? Word Dokument in n8n?

  1. Füge die PDF4me Word Fügen Sie den Knoten zu Ihrem Workflow hinzu und legen Sie fest Betrieb Zu Sicher Word DokumentierenDie
  2. Wählen Sie Ihre PDF4me Anmeldeinformationen, oder erstellen Sie welche und fügen Sie Ihre ein. API Schlüssel.
  3. Wähle ein Word Dateieingabemethode und liefern Sie die .docx durch das darunter liegende Feld.
  4. Satz Dokumentname mit der korrekten Dateiendung.
  5. Zum Öffnen des Tores einschalten Sicher bei geöffnetem Zustand und setzen Passwort öffnen aus Anmeldeinformationen oder Umgebungsvariablen.
  6. Um die Bearbeitung zu steuern, stellen Sie Folgendes ein: Schutzart und liefern Sie eine andere SchutzpasswortDie
  7. Satz Name der Ausgabedatei endet mit .docxDie
  8. Führe den Knoten aus und bestätige. secureOnOpen Und protectionType In der Antwort wird dann die gesicherte Datei weitergeleitet.

Typische Konfigurationen

Workflow-BeispieleCommon n8n workflow patterns using Secure Word Document.
Senden Sie einen vertraulichen Bericht
  1. Ein Meldevorgang erzeugt ein Dokument mit sensiblen Daten.
  2. Secure On Open verwendet ein in einer Umgebungsvariablen gespeichertes Passwort.
  3. Die Datei wird per E-Mail versendet, das Passwort wird über einen separaten Kanal übermittelt.
Einen Vertrag zur Kommentierung verteilen.
  1. Der Schutztyp ist auf „Kommentare zulassen“ eingestellt.
  2. Die Gutachter geben Anmerkungen ab, ohne den Text der einzelnen Klauseln zu verändern.
  3. Das Feedback kommt an, ohne dass im Nachhinein eine Differenz geklärt werden muss.
Verteilen Sie ein ausfüllbares Formular
  1. Die Option „Formularfelder zulassen“ sorgt dafür, dass der umgebende Text unverändert bleibt.
  2. Die Empfänger füllen nur die für sie vorgesehenen Felder aus.
  3. Die zurückgegebenen Formulare sind konsistent genug, um automatisch analysiert zu werden.
Genehmigte Vorlage sperren
  1. Eine Vorlage wird genehmigt und auf einem gemeinsamen Laufwerk veröffentlicht.
  2. Der Schreibschutz verhindert stille lokale Änderungen.
  3. Alle arbeiten mit der gleichen, maßgeblichen Formulierung.

Praktische Tipps

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.

Spickzettel

FeldWert
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

Häufig gestellte Fragen

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.

Verwandte Aktionen

Dieselbe Aufgabe auf anderen Plattformen

Hilfe erhalten