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

ロック解除 Excel ファイルと保護の削除 n8n

ロック解除ファイル は PDF4me Excel オペレーション n8n これは、ファイル暗号化、ワークブック構造、ワークシート保護という 3 つの独立したレベルで .xlsx ワークブックからパスワード保護を解除します。保護されたテンプレートを開いたり、自動データ書き込み用にファイルを準備したり、アーカイブ前にパスワードをクリアしたりするのに使用できます。 Excel。

このノードの機能

PDF4me Excel: ファイルのロックを解除 削除する Excel 一度の処理で保護が完了します。ファイルを開くためのパスワード(ファイル暗号化)、シートの追加、削除、名前変更を防止するワークブック構造ロック、そしてオプションでセルや数式の編集を防止するワークシート保護を解除します。指定したパスワードは複数のレイヤーでフォールバックとして再利用されるため、単一のパスワードで保護されたワークブックの場合は、通常1つのフィールドに入力するだけで済みます。

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

認証 API リクエスト​

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

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

3つの保護レベル、1つの操作
ファイル暗号化、ワークブック構造、ワークシート保護は独立したロックです Excelワークブックには任意の組み合わせを含めることができ、この操作は3つすべてを1回の実行で処理します。
パスワードは複数のレイヤーにまたがってフォールバックする
各レイヤーはまずパスワードなしで試行されます。パスワードが指定されている場合は、他のレイヤーでもそのパスワードが再利用されるため、ファイル暗号化パスワードで指定されたパスワードが、同じ方法で保護されたワークブック全体を解除してしまうことがよくあります。
ワークシートのロック解除はオプトイン方式です
「ワークシートのロック解除」の切り替えボタンは、デフォルトではオフになっています。オープンパスワードと構造ロックのみを解除する場合はオフのままにし、セルと数式も編集可能にする必要がある場合はオンに切り替えてください。
n8n の PDF4me Excel ノードは、操作が「ファイルのロック解除」に設定され、Excel ファイルの入力方法は前のノードから (バイナリ データ)、バイナリ データ プロパティ名は data、ファイル暗号化パスワードとワークブック保護パスワードのフィールドは空、ワークシートのロック解除はオフ、カルチャ名は en-US、出力ファイル名は excel_unlocked.xlsx、ソース ドキュメント名は myExcelFile.xlsx、出力バイナリ データ名は data に設定されています。

PDF4me Excel ファイルパラメータパネルのロックを解除 n8n

どれの Excel 保護機能は各フィールドから削除されますか?​

Excel は3つの異なるレベルで保護を適用しますが、これらは混同しやすいです。この表は、それぞれのレベルが何をブロックし、どのフィールドでブロックを解除するかを示しています。

保護レベルブロックするものそれをクリアするフィールド
File encryptionThe workbook cannot be opened at all without a password. Excel prompts before any content is visible.File Encryption Password
Workbook structureSheets cannot be added, deleted, renamed, moved, hidden, or unhidden, though existing cells stay editable.Workbook Protection Password
Worksheet protectionCells, formulas, and objects on a sheet cannot be edited, though the file opens and the structure is intact.Unlock Worksheets toggle

ファイルのロック解除にはどのようなパラメータが必要ですか?​

必須: 手術、 Excel ファイル入力方法、その方法に対応する入力フィールド、および出力ファイル名を指定します。パスワードフィールドは条件付きであり、ワークブックに実際に設定されている保護レベルに応じてのみ必要となります。ワークシートのロック解除、カルチャ名、ソースドキュメント名、および出力バイナリデータ名はオプションです。

パラメータ必須その機能例
OperationRequiredSelects the PDF4me Excel action to run. Choose Unlock File.Unlock File
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 holding the .xlsx workbook. Applies when the input method is binary data. Defaults to data.data
File Encryption PasswordConditionalThe password required to open the workbook. Supply it when the file is encrypted; it is also reused as a fallback against the other protection levels.FilePass123
Workbook Protection PasswordConditionalThe password guarding workbook structure, which prevents sheets being added, deleted, renamed, or moved. Supply it when structure protection is set.StructurePass
Unlock WorksheetsOptionalToggle that extends the run to worksheet-level protection so cells, formulas, and objects become editable. Off by default.true
Culture NameOptionalLocale used while processing the workbook, relevant for locale-sensitive number and date formatting.en-US
Output File NameRequiredFilename for the unlocked workbook the node returns. Include the .xlsx extension.excel_unlocked.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

出力フィールド​

成功したランは1 n8n 持ち運んでいるアイテム JSON メタデータと、ロック解除されたワークブックをバイナリデータとして含む。

分野タイプ内容物
successBooleanTrue when protection was removed successfully. Use it to route error-handling branches.
fileNameStringFilename of the unlocked workbook, matching Output File Name.
fileSizeNumberSize of the returned workbook in bytes.
originalFileNameStringThe value supplied in Source Document Name, echoed back for tracking.
messageStringHuman-readable result message for the unlock operation.
Binary (data)BinaryThe unlocked .xlsx under Output Binary Data Name (default data). Pass into Write Binary File, Email, or a cloud-storage upload.

N8N 行動対応​

JSON 回答形式

[
{
"fileName": "excel_unlocked.xlsx",
"fileSize": 14234,
"success": true,
"originalFileName": "myExcelFile.xlsx",
"message": "Excel document unlocked successfully"
}
]

ロック解除ファイルの設定方法 n8n?​

  1. 追加する PDF4me Excel ノードをワークフローに追加して設定します 手術 に ロック解除ファイル。
  2. で 接続するための認証情報選択してください PDF4me API 認証情報を使用するか、またはあなたの API 鍵。
  3. セット Excel ファイル入力方法 に 前のノードから(バイナリデータ) そして設定する バイナリデータプロパティ名 ワークブックを保管している物件へ、通常 data。
  4. 入力 ファイル暗号化パスワード ワークブックを開くのにパスワードが必要な場合。
  5. 入力 ワークブック保護パスワード シート構造がロックされている場合。
  6. スイッチオン ワークシートのロックを解除する セルや数式も編集可能にする必要がある場合。
  7. オプションで設定可能 文化名 地域設定に依存するワークブックの場合。
  8. セット 出力ファイル名 で終わる .xlsxノードを実行し、ロック解除されたワークブックを次の処理にルーティングします。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Unlock File for Excel.
データを書き込む前に、保護されたテンプレートのロックを解除してください。
  1. ワークフローはロックされたレポートテンプレートを SharePoint。
  2. ファイルロックを解除すると、構造ロックが解除され、新しいシートを追加できるようになります。
  3. PDF4me Excel 「行の追加」機能は、期間ごとの数値をワークブックに書き込みます。
アーカイブする前にパスワードをクリアしてください
  1. スケジュールトリガーは、長期保存が必要なワークブックを収集します。
  2. ファイルロック解除機能は、ファイルを開くためのパスワードを削除するため、アーカイブは後で読み取り可能な状態になります。
  3. 削除されたファイルはアーカイブバケットに書き込まれます。
Make サプライヤーワークブック(機械可読形式)
  1. メールトリガーは、サプライヤーから保護された価格表を受信します。
  2. ファイルのロック解除は、ワークシートのロック解除が有効になっている状態で実行されるため、セルの値を解析できます。
  3. 抽出された行は内部データベースに同期されます。
ロックを解除し、編集してから、再度ロックする
  1. 「ファイルのロック解除」は、承認済みのワークブックの保護を解除します。
  2. 下流ノードは数値を更新し、概要シートをリフレッシュします。
  3. PDF4me Excel 安全な Excel 再配布前にパスワードを再適用します。

実践的なヒント​

Try it with no password first
Structure and worksheet protection are often set without any password. Run the node with the password fields empty before assuming you need one.
One password usually covers all layers
Because supplied passwords are reused as fallbacks, filling in File Encryption Password alone often clears a workbook secured the same way throughout.
Passwords are case-sensitive
A mismatch in capitalisation fails the layer silently rather than erroring loudly, so check case before debugging further.
Leave Unlock Worksheets off unless needed
Removing cell-level protection can expose formulas that were deliberately locked. Enable it only when downstream nodes must edit cells.
Re-secure after editing
Unlocking is usually a middle step. Chain Secure Excel at the end so the redistributed workbook is protected again.
Output File Name needs the .xlsx extension
Omitting it can leave downstream nodes unable to detect the format when writing or emailing the file.

チートシート​

分野価値
OperationUnlock File
Excel File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
File Encryption Password(only if the file needs a password to open)
Workbook Protection Password(only if the sheet structure is locked)
Unlock Worksheetsoff (on to make cells editable)
Culture Nameen-US
Output File Nameexcel_unlocked.xlsx
Source Document NamemyExcelFile.xlsx
Output Binary Data Namedata
CredentialsPDF4me API credential

よくある質問​

What are the three levels of Excel protection this removes?+
File encryption is the password required to open the file at all. Workbook structure protection stops sheets being added, deleted, renamed, or moved. Worksheet protection stops cells, formulas, and objects being edited. Each level is independent, as described in Microsoft protection and security in Excel.
Do I need to supply a password for every protection level?+
No. Only supply the passwords that apply. The operation first attempts to remove each layer with no password, and where a password is supplied it is also reused as a fallback for the other layers, so a workbook that uses one password throughout usually needs only File Encryption Password filled in.
What does the Unlock Worksheets toggle do?+
It controls whether worksheet-level protection is cleared as part of the run. Leave it off to remove only file encryption and workbook structure protection. Switch it on when cells, formulas, or objects also need to become editable.
Is this the same as cracking an unknown Excel password?+
No. The operation removes protection you are authorised to remove, using passwords you supply or protection that carries no password. It is intended for automating access to your own files, such as unlocking a protected template before a workflow writes data into it.
What is Culture Name for?+
Culture Name sets the locale used while the workbook is processed, for example en-US or de-DE. It matters when a workbook contains locale-sensitive formatting such as decimal separators or date formats. Leaving it at the default uses the standard culture.
What is the difference between Output File Name and Source Document Name?+
Output File Name is the filename of the unlocked workbook the node returns. Source Document Name is a reference label echoed back as originalFileName in the response, useful for tracking. Both can be driven by expressions, following the n8n expressions documentation.

関連アクション​

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

ヘルプが必要な場合​