メインコンテンツへスキップ

ロック解除 PDF で n8n

ロック解除 PDF は PDF4me ノードアクション n8n パスワード保護を解除する PDF 正しいパスワードを入力すると、保護されたファイルを後続のワークフロー手順で読み取り可能にしたり、所有するアーカイブから暗号化を解除したり、サプライヤーから送られてくるすべての明細書を個別に開くことなくロック解除したりできます。

このノードの機能

PDF4me: ロック解除 PDF 保護された PDF バイナリデータから、 Base64 Stringまたは URL指定したパスワードを適用し、プロンプトなしで開くコピーを返します。 パスワード このフィールドは必須項目であるため、紛失したパスワードを復元するのではなく、既にアクセス権限のあるドキュメントのロックを解除します。抽出および変換ステップでは暗号化されたファイルを読み取ることができないため、通常はパイプラインの先頭に配置されます。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

毎 PDF4me ノード n8n 有効な 接続するための認証情報. 作成または選択して、 PDF4me API ワークフローがロック解除要求を安全に認証できるようにするためのキー。

見逃してはならない重要な事実​

パスワードが必要です
これはパスワード復旧ツールではありません。正しいパスワードがないと、この操作ではドキュメントのロックを解除できません。
抽出する前にロックを解除してください
テキスト、表、フォームの抽出では暗号化されたデータを読み取ることができません PDFそのため、このノードは通常、ワークフローの最初に配置されます。
ワークフローファイルにはパスワードを含めないでください
秘密情報を直接入力するのではなく、認証情報または環境変数を参照することで、エクスポートされたワークフローに秘密情報が含まれないようにします。 JSON。
n8n の PDF4me ノードは、アクションを「PDF のロック解除」、入力データタイプを「バイナリデータ」、入力バイナリフィールドを「データ」、出力ファイル名を「unlocked_output.pdf」、マスクされたパスワードフィールド、およびバイナリデータ出力名を「データ」に設定しています。

PDF4me ロック解除 PDF パラメーターパネル n8n

ロック解除 PDF ドキュメントの保護との比較​

これら2つの動作は正反対であり、ワークフローでは両方がよく使われます。つまり、受信したファイルをロック解除して読み取り、その後、結果を再度保護してから送信するのです。

側面ロック解除 PDFドキュメントを保護する
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

ロック解除されるパラメータは何ですか PDF 必要?​

必須: アクション、入力データタイプ、その入力タイプに一致するフィールド、出力ファイル名、およびパスワード。バイナリデータ出力名とカスタムプロファイルには、動作するデフォルト値が設定されています。

パラメータ必須その機能例
Input Data TypeRequiredChoose how to provide the PDF file to unlock. Options: Binary Data, Base64 String, URL. Default is `Binary Data`.Binary Data
Input Binary FieldConditionalName of the binary property that contains the PDF file (usually "data" for file uploads). Shown when Input Data Type is Binary Data. Default is `data`.data
Base64 PDF ContentConditionalBase64 encoded PDF document content. Shown when Input Data Type is Base64 String.JVBERi0xLjQK...
PDF URLConditionalURL to the PDF file to unlock. Shown when Input Data Type is URL.
Output File NameOptionalName for the output unlocked PDF file. Default is `unlocked_output.pdf`.unlocked_output.pdf
PasswordOptionalPassword for the protected PDF. Default is `1234`.1234
Binary Data Output NameOptionalCustom name for the binary data in n8n output. Default is `data`.data

出力フィールド​

成功したランは1 n8n ロック解除されたアイテム PDF。

出力​

ノードが返すフィールド。

分野タイプ内容物
dataBinaryThe unlocked PDF. The item's JSON is empty: the node returns no fields.

ロック解除の設定方法 PDF で n8n?​

  1. 追加 PDF4me あなたの n8n ワークフローを選択し、 ロック解除 PDF アクション。
  2. で 接続するための認証情報選択してください PDF4me 認証情報またはクリック 新しい認証情報を作成する そしてあなたの API 鍵。
  3. セット 入力データタイプ に バイナリデータ (デフォルト)、 Base64 String、 または URL 対応するソースを提供する PDF 分野。
  4. セット 出力ファイル名 ロック解除されたファイルの場合、末尾は .pdf。
  5. ドキュメントを入力してください パスワード理想的には、認証情報または環境変数を読み取る式として記述します。
  6. 離れる バイナリデータ出力名 として data 後続のノードが異なるプロパティを期待している場合を除きます。
  7. ノードを実行し、ロック解除された PDF 抽出、変換、保存などの次のステップへ。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Unlock PDF.
保護された銀行取引明細書を読む
  1. 明細書は既知のパスワードで保護された電子メールで届きます。
  2. ロック解除 PDF 保存された秘密情報を使用して保護を解除します。
  3. テーブル抽出ステップでは、トランザクションをシートに読み込みます。
所有するアーカイブからの暗号化を解除します。
  1. 共有ドライブにある古い文書はすべて、同じ古いパスワードを使用しています。
  2. ロック解除 PDF 移行バッチ処理中に各ファイルに対して実行されます。
  3. 保護されていないコピーは、検索可能な新しい文書システムに保存されます。
ロック解除、処理、そして再保護
  1. ロック解除 PDF 受信した保護された文書を開きます。
  2. ワークフローは、読み取り可能なファイルにスタンプを押したり、マージしたり、編集したりします。
  3. Protect Documentは、再送信する前に新しいパスワードを適用します。
パイプラインを保護する success チェック
  1. ロック解除 PDF 到着した各ファイルに対して、保存されているパスワードを試行します。
  2. IFノードは返された値をテストします success および isUnlocked フィールド。
  3. 障害が発生するとアラートが発信されるため、パスワードが変更された場合はすぐに通知されます。

実践的なヒント​

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.

チートシート​

分野価値
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

よくある質問​

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.

関連アクション​

他のプラットフォームでの同じタスク​

ヘルプが必要な場合​