Zum Hauptinhalt springen

Entsperren PDF In n8n

Entsperren PDF ist ein PDF4me Knotenaktion in n8n das den Passwortschutz von einem entfernt PDF Wenn Sie das richtige Passwort eingeben. Verwenden Sie es, um geschützte Dateien in späteren Arbeitsschritten lesbar zu machen, die Verschlüsselung eines von Ihnen verwalteten Archivs aufzuheben oder alle Kontoauszüge eines Lieferanten zu entsperren, ohne sie einzeln öffnen zu müssen.

Was dieser Knoten bewirkt

PDF4me: Freischalten PDF nimmt einen geschützten PDF aus Binärdaten, ein Base64 Stringoder ein URLwendet das von Ihnen angegebene Passwort an und gibt eine Kopie zurück, die sich ohne weitere Eingabeaufforderung öffnet. Passwort Dieses Feld ist erforderlich, um Dokumente zu entsperren, für deren Öffnung Sie bereits berechtigt sind, anstatt ein verlorenes Passwort wiederherzustellen. Es befindet sich üblicherweise am Anfang einer Verarbeitungskette, da Extraktions- und Konvertierungsschritte verschlüsselte Dateien nicht lesen können.

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 Entsperranfragen sicher authentifizieren kann.

Wichtige Fakten, die Sie nicht verpassen sollten

Das Passwort ist erforderlich
Dies ist kein Tool zur Passwortwiederherstellung. Ohne das richtige Passwort kann das Dokument durch diese Aktion nicht entsperrt werden.
Entsperren Sie die Datei, bevor Sie sie extrahieren.
Die Extraktion von Text, Tabellen und Formularen kann keine verschlüsselten Daten lesen. PDFDieser Knoten gehört also üblicherweise ganz an den Anfang des Arbeitsablaufs.
Das Passwort darf nicht in die Workflow-Datei gelangen.
Verwenden Sie eine Anmeldeinformation oder eine Umgebungsvariable, anstatt das Geheimnis einzugeben, damit es nicht in den exportierten Workflow übernommen wird. JSONDie
Der PDF4me-Knoten in n8n ist auf folgende Einstellungen gesetzt: Aktion „PDF entsperren“, Eingabedatentyp „Binärdaten“, Eingabefeld „Daten“, Ausgabedateiname „unlocked_output.pdf“, ein maskiertes Passwortfeld und Ausgabename „Daten“.

PDF4me Entsperren PDF Parameterbereich in n8n

Entsperren PDF vs. Dokument schützen

Diese beiden Aktionen stehen im Gegensatz zueinander, und in Arbeitsabläufen werden oft beide verwendet: Entsperren einer eingehenden Datei zum Lesen und anschließendes erneutes Schützen des Ergebnisses, bevor es wieder ausgegeben wird.

AspektEntsperren PDFDokument schützen
What it doesRemoves existing password protectionApplies password protection
Password you supplyThe current password on the documentThe new password you want to set
Typical positionFirst step, so later nodes can read the fileLast step, before the file is sent or stored
PrerequisiteYou must already know the passwordNone beyond the source document

Welche Parameter werden freigeschaltet? PDF Brauchen?

Erforderlich: Aktion, Eingabedatentyp, das Feld, das diesem Eingabetyp entspricht, Ausgabedateiname und Passwort. Ausgabedateiname für Binärdaten und benutzerdefinierte Profile enthalten standardmäßig funktionierende Werte.

ParameterErforderlichWas es tutBeispiel
ActionRequiredSelects the PDF4me node action to run. Choose Unlock PDF.Unlock PDF
Input Data TypeRequiredFormat of the source PDF input. Choose Binary Data (from a previous node), Base64 String, or URL.Binary Data
Input Binary FieldConditionalName of the binary property on the incoming n8n item that holds the protected PDF. Required when Input Data Type is Binary Data. Defaults to data.data
Base64 Document ContentConditionalBase64-encoded content of the protected PDF. Required when Input Data Type is Base64 String.JVBERi0xLjQK...
File URLConditionalPublicly reachable HTTPS URL to the protected PDF. Required when Input Data Type is URL.https://example.com/statement.pdf
Output File NameRequiredFilename for the unlocked PDF returned by the node. Include the .pdf extension.unlocked_output.pdf
PasswordRequiredThe current password on the document. Shown masked in the panel. Reference a credential or environment variable rather than typing the secret into a saved workflow.{{ $env.PDF_PASSWORD }}
Binary Data Output NameOptionalName of the binary property the output item exposes. Defaults to data.data
Custom ProfilesOptionalAdvanced Options field for extra processing settings, supplied in a JSON-like format. Leave blank unless you have a specific profile to apply.{ "preserveMetadata": true }

Ausgabefelder

Ein erfolgreicher Lauf bringt eins zurück n8n Gegenstand, der das entsperrte PDFDie

FeldTypWas es enthält
Binary (data)BinaryThe unlocked PDF, under Binary Data Output Name (default data).
fileNameStringGenerated filename, matching Output File Name.
docNameStringName of the processed document, for reference and tracking.
mimeTypeStringMIME type of the output, always application/pdf.
fileSizeNumberSize of the returned PDF in bytes.
isUnlockedBooleanConfirms the document was unlocked. A useful assertion before handing the file to an extraction step.
securityRemovedBooleanConfirms password protection and access restrictions were removed.
successBooleanTrue when the unlock completed, false on failure such as a wrong password. Use it to branch error handling.
messageStringHuman-readable status message, carrying success confirmation or error detail.

Wie richte ich Unlock ein? PDF In n8n?

  1. Hinzufügen PDF4me zu Ihrem n8n Workflow und wählen Sie den Entsperren PDF Aktion.
  2. In Anmeldeinformationen zum Verbinden mit, wählen Sie Ihre PDF4me Anmeldeinformationen oder klicken Neue Anmeldeinformationen erstellen und fügen Sie Ihren ein API Schlüssel.
  3. Satz Eingabedatentyp Zu Binärdaten (Standard), Base64 String, oder URL und die passende Quelle bereitstellen PDF Feld.
  4. Satz Name der Ausgabedatei für die entsperrte Datei, die mit endet .pdfDie
  5. Dokument eingeben PasswortIdealerweise als Ausdruck, der eine Anmeldeinformation oder eine Umgebungsvariable ausliest.
  6. Verlassen Name der Binärdatenausgabe als data es sei denn, ein späterer Knoten erwartet eine andere Eigenschaft.
  7. Führe den Knoten aus und leite die entsperrten Daten weiter PDF zum nächsten Schritt, wie z. B. Extraktion, Umwandlung oder Speicherung.

Typische Konfigurationen

Workflow-BeispieleCommon n8n workflow patterns using Unlock PDF.
Lesen Sie geschützte Kontoauszüge.
  1. Ein Kontoauszug wird per E-Mail zugestellt, die mit einem bekannten Passwort geschützt ist.
  2. Entsperren PDF entfernt den Schutz mithilfe eines gespeicherten Geheimnisses.
  3. Ein Tabellenextraktionsschritt liest die Transaktionen in ein Tabellenblatt ein.
Klare Verschlüsselung aus einem eigenen Archiv
  1. Alle älteren Dokumente auf einem gemeinsam genutzten Laufwerk verwenden dasselbe alte Passwort.
  2. Entsperren PDF wird während eines Migrationsbatches über jede Datei ausgeführt.
  3. Die ungeschützten Kopien landen im neuen Dokumentensystem und sind durchsuchbar.
Entsperren, verarbeiten und dann erneut schützen
  1. Entsperren PDF öffnet ein eingehendes geschütztes Dokument.
  2. Der Workflow stempelt, führt zusammen oder bearbeitet die lesbare Datei.
  3. Protect Document wendet vor dem erneuten Versenden ein neues Passwort an.
Schützen Sie die Pipeline mit einem success überprüfen
  1. Entsperren PDF versucht, das gespeicherte Passwort bei jeder eingehenden Datei einzugeben.
  2. Ein IF-Knoten prüft den zurückgegebenen Wert. success und isUnlocked-Felder.
  3. Fehler werden zu einer Warnmeldung weitergeleitet, sodass ein geändertes Passwort sofort bemerkt wird.

Praktische Tipps

Never hardcode the password
Use an expression that reads an n8n credential or environment variable, so the secret does not travel inside exported workflow JSON.
Put the unlock first
Extraction and conversion nodes cannot read an encrypted PDF, so unlocking early avoids confusing downstream failures.
Alert on a failed unlock
A rotated password will fail every run. Branch on success so it surfaces as an alert rather than a pile of stuck items.
Assert on isUnlocked before extracting
Checking the flag is cheaper than debugging an extraction node that received a file it could not open.
Only unlock what you are authorised to
The action needs the real password by design. Confirm you have the right to remove protection before automating it across an archive.
re-protect before sending outward
If the document leaves your systems again, add Protect Document at the end so the unlocked copy is not what gets distributed.

Spickzettel

FeldWert
ActionUnlock PDF
Input Data TypeBinary Data
Input Binary Fielddata
Output File Nameunlocked_output.pdf
Password{{ $env.PDF_PASSWORD }}
Binary Data Output Namedata
CredentialsPDF4me API credential

Häufig gestellte Fragen

Can Unlock PDF open a PDF when I do not know the password?+
No. The Password field is required and must match the password set on the document. The node removes protection from files you are already authorised to open; it is not a password recovery or cracking tool. If nobody in your organisation holds the password, the document cannot be unlocked through this action.
Where should I store the PDF password in n8n?+
Avoid typing it directly into the Password field on a saved workflow. Reference an n8n credential or an environment variable through an expression instead, so the secret is not stored in the workflow JSON that gets exported, shared, or committed to version control.
Does unlocking remove permission restrictions as well as the open password?+
The action removes the password protection so the returned file opens without a prompt, and the response includes a securityRemoved flag confirming restrictions were lifted. Encryption and permission handling are defined in the ISO 32000 PDF specification, so check that flag on a representative document before assuming a specific restriction such as printing or copying is gone.
Why unlock PDFs in a workflow instead of one at a time?+
Downstream steps such as text extraction, table parsing, and conversion cannot read an encrypted PDF. Putting Unlock PDF at the front of the workflow means every protected file that arrives is made readable automatically, rather than stalling the pipeline until someone opens each one by hand.
What happens if the password is wrong?+
The run fails rather than returning a partially unlocked file. Branch on the returned success boolean so a wrong or rotated password raises an alert instead of silently passing the still-encrypted original to the next step, where it would fail again less obviously.

Verwandte Aktionen

Dieselbe Aufgabe auf anderen Plattformen

Hilfe erhalten