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

ヘッダーとフッターを削除する Excel で n8n

ヘッダー/フッターを削除する は PDF4me Excel オペレーション n8n 左、中央、右のセクションをクリアする Excel ヘッダーとフッターを個別に、1つのワークシートまたはワークブック全体で設定できます。リブランディング前に古いブランド要素を削除したり、再利用のためにテンプレートを整理したり、クライアントにワークブックを送信する前に内部のマーキングを削除したりするのに使用できます。

このノードの機能

PDF4me Excelヘッダー/フッターを削除 クリア Excel ページヘッダーとフッターをセクションごとに設定できます。6つの独立したトグルで、ヘッダーとフッターの左、中央、右の位置をそれぞれ設定できるため、片隅のロゴを削除しながら、もう片隅のページ番号はそのまま残しておくことができます。「対象ワークシート名」を指定すると、削除対象は1つのシートのみに適用されます。空白のままにすると、すべてのシートに適用されます。

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

認証 API リクエスト​

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

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

6つのトグルスイッチはすべて独立しており、デフォルトではオフになっています。
「ヘッダー左、中央、右を削除」と「フッター左、中央、右を削除」は、いずれもデフォルトでは「false」に設定されています。明示的にオンにしない限り、何も削除されません。
空のターゲットワークシート名はすべてのシートを意味します
対象ワークシート名を空白のままにすると、削除処理がブック全体に適用され、応答では applyToAllWorksheets が true と報告されます。シート名を指定すると、削除処理はその特定のワークシートのみに適用されます。
異なるシートには個別のノード実行が必要です
対象ワークシート名は、1つのシートまたはすべてのシートを指定でき、複数のシートを混在させることはできません。異なるワークシートから異なるセクションを削除する必要がある場合は、2つ目の「ヘッダー/フッターの削除」ノードを連結してください。
n8n の PDF4me Excel ノードは、操作が「ヘッダー/フッターの削除」に設定され、Excel ファイルの入力方法は前のノードから (バイナリ データ)、バイナリ データ プロパティ名は data、ヘッダーの左中央右の削除とフッターの左中央右の削除はすべてオフに切り替わります、出力ファイル名は excel_without_header_footer.xlsx、ソース ドキュメント名は myExcelFile.xlsx、出力バイナリ データ名は data、ターゲット ワークシート名は field です。

PDF4me Excel ヘッダー/フッターパラメータパネルを削除します n8n

ヘッダー/フッターを削除するには、どのようなパラメータが必要ですか?​

必須: 手術、 Excel ファイル入力方法、その方法に一致する入力フィールド、および出力ファイル名を指定します。セクション削除の6つのトグルはすべてデフォルトでfalseに設定されており、ターゲットワークシート名、カルチャ名、ソースドキュメント名、および出力バイナリデータ名はオプションです。

パラメータ必須その機能例
OperationRequiredSelects the PDF4me Excel action to run. Choose Remove Header/Footer.Remove Header/Footer
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
Remove Header LeftOptionalClears the left section of the page header. Default false.true
Remove Header CenterOptionalClears the center section of the page header. Default false.true
Remove Header RightOptionalClears the right section of the page header. Default false.false
Remove Footer LeftOptionalClears the left section of the page footer. Default false.true
Remove Footer CenterOptionalClears the center section of the page footer. Default false.true
Remove Footer RightOptionalClears the right section of the page footer. Default false.false
Output File NameRequiredFilename for the cleaned workbook the node returns. Include the .xlsx extension.excel_without_header_footer.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
Target Worksheet NameOptionalName of the single worksheet to process. Leave blank to apply the removal to every worksheet.Sheet1
Culture NameOptionalLocale used while processing the workbook, relevant when header or footer text includes locale-sensitive placeholders.en-US

出力フィールド​

成功したランは1 n8n 持ち運んでいるアイテム JSON メタデータと、クリーニング済みのワークブックをバイナリデータとして含む。

分野タイプ内容物
successBooleanTrue when the removal ran successfully. Use it to route error-handling branches.
fileNameStringFilename of the cleaned workbook, matching Output File Name.
fileSizeNumberSize of the returned workbook in bytes.
originalFileNameStringThe value supplied in Source Document Name, echoed back for tracking.
removeHeaderLeftBooleanWhether the left header section was removed.
removeHeaderCenterBooleanWhether the center header section was removed.
removeHeaderRightBooleanWhether the right header section was removed.
removeFooterLeftBooleanWhether the left footer section was removed.
removeFooterCenterBooleanWhether the center footer section was removed.
removeFooterRightBooleanWhether the right footer section was removed.
worksheetNameStringThe worksheet the removal targeted, matching Target Worksheet Name.
applyToAllWorksheetsBooleanTrue when the removal applied to every worksheet, false when only the named worksheet was processed.
messageStringHuman-readable result message for the operation.
Binary (data)BinaryThe cleaned .xlsx under Output Binary Data Name (default data). Pass into Write Binary File, Email, or a cloud-storage upload.

N8N 行動対応​

JSON 回答形式

[
{
"fileName": "excel_without_header_footer.xlsx",
"fileSize": 212810,
"success": true,
"originalFileName": "myExcelFile.xlsx",
"removeHeaderLeft": false,
"removeHeaderCenter": false,
"removeHeaderRight": false,
"removeFooterLeft": false,
"removeFooterCenter": false,
"removeFooterRight": false,
"worksheetName": "Sheet1",
"applyToAllWorksheets": false,
"message": "Header and footer removed from Excel file successfully"
}
]

ヘッダー/フッターを削除するにはどうすればいいですか? n8n?​

  1. 追加する PDF4me Excel ノードをワークフローに追加して設定します 手術 に ヘッダー/フッターを削除する。
  2. で 接続するための認証情報選択してください PDF4me API 認証情報を使用するか、またはあなたの API 鍵。
  3. セット Excel ファイル入力方法 に 前のノードから(バイナリデータ) そして設定する バイナリデータプロパティ名 ワークブックを保管している物件へ、通常 data。
  4. 必要なセクションの切り替えスイッチをオンにしてください。 ヘッダー左側を削除、 中心、 右 そして フッターを左に削除、 中心、 右。
  5. セット 対象ワークシート名 特定のシートを指定するか、ワークブック全体を空白のままにしてください。
  6. オプションで設定可能 文化名 地域設定に依存するヘッダーまたはフッターのテキスト用。
  7. セット 出力ファイル名 で終わる .xlsxノードを実行し、クリーンアップされたワークブックを次の処理にルーティングします。

典型的な構成​

ワークフローの例Common n8n workflow patterns using Remove Header/Footer for Excel.
リブランディングの前に古いブランドを剥ぎ取る
  1. バッチジョブは、共有ドライブから従来のレポートテンプレートを取得します。
  2. 「ヘッダー/フッターの削除」は、「ヘッダー中央の削除」と「フッター中央の削除」をオンにした状態で実行され、古いロゴテキストを消去します。
  3. PDF4me Excel 「テキストヘッダー/フッターを追加」機能は、その後新しいブランディングを適用します。
クライアントへの納品前に内部メモを消去する
  1. レポートが外部配信準備完了とマークされたときに、Webhookが起動します。
  2. ヘッダー/フッターを削除すると、内部レビュー担当者のイニシャルが配置されていた左側のヘッダーが削除されます。
  3. 内容が修正されたワークブックはクライアントにメールで送信されます。
テンプレートをリセットして再利用する
  1. 完成したプロジェクトワークブックは、テンプレートフォルダにコピーされます。
  2. 6つのセクション切り替えボタンはすべて正常に動作し、すべてのヘッダーとフッターセクションが消去されます。
  3. 空白ヘッダーのテンプレートは、次のプロジェクトのために保存されます。
要約シートのみを清掃します
  1. 複数シートのワークブックには、生データタブと要約シートが含まれています。
  2. ターゲットワークシート名は「概要」に設定されているため、生データタブにはヘッダーが保持されます。
  3. クリーンアップされた要約シートは、 PDF 配布用。

実践的なヒント​

Only toggle what needs clearing
All six removal flags default to false. Turning on Remove Header Center alone leaves the left and right header sections, and the entire footer, untouched.
Blank Target Worksheet Name means every sheet
There is no separate all-worksheets toggle. Leaving the field empty is what triggers workbook-wide removal.
One worksheet per run
To apply different section removals to different sheets, add a second Remove Header/Footer node rather than trying to list multiple sheet names in one field.
Check applyToAllWorksheets in the response
The output field confirms whether the removal actually ran workbook-wide or was scoped to one sheet, useful for logging in larger workflows.
Output File Name needs the .xlsx extension
Omitting it can leave downstream nodes unable to detect the format when writing or emailing the file.
Source Document Name is reference-only
It is echoed back as originalFileName for tracking and does not affect which sections are removed.

チートシート​

分野価値
OperationRemove Header/Footer
Excel File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
Remove Header Left / Center / Righttrue / true / false (example)
Remove Footer Left / Center / Righttrue / true / false (example)
Target Worksheet Name(blank for all worksheets)
Culture Nameen-US
Output File Nameexcel_without_header_footer.xlsx
Source Document NamemyExcelFile.xlsx
Output Binary Data Namedata
CredentialsPDF4me API credential

よくある質問​

Do I have to remove every header and footer section at once?+
No. Remove Header Left, Center, Right and Remove Footer Left, Center, Right are six independent toggles. Turn on only the sections that need clearing, for example just Remove Header Center to drop a company name while leaving page numbers in the footer untouched.
What happens if I leave Target Worksheet Name empty?+
The operation applies the selected removals to every worksheet in the workbook, and the response reports applyToAllWorksheets true. Entering a specific sheet name restricts the operation to that single worksheet, and the response echoes it back as worksheetName.
Can I remove headers from one sheet and footers from another in a single run?+
Not in one execution, since Target Worksheet Name accepts a single sheet or all sheets. Chain two Remove Header/Footer nodes in the workflow, each with a different Target Worksheet Name and a different set of section toggles, to apply distinct removals per sheet.
Does removing a header section delete the whole header row?+
No. Excel headers and footers are split into three independent sections, left, center, and right, that print in fixed positions on the page. Clearing one section leaves the other two intact, so a page number in the right footer can survive while a left footer note is removed.
What is Culture Name used for here?+
Culture Name sets the locale applied while the workbook is processed, useful when header or footer text includes locale-sensitive placeholders such as dates. Leaving it empty uses the default culture.

関連アクション​

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

ヘルプが必要な場合​