画像ヘッダーまたはフッターを追加する Excel で n8n
画像ヘッダー/フッターを追加 は PDF4me Excel オペレーション n8n .xlsx ワークブックのヘッダーまたはフッターにロゴやブランド画像を挿入し、1 つのワークシートまたはすべてのワークシートの左、中央、または右に配置します。これを使用すると、ファイルを開かずに生成されたレポートに一貫した企業ブランディングを適用できます。 Excel。
このノードの機能
PDF4me Excel画像ヘッダー/フッターを追加する ソースとなるワークブックと別の画像入力を受け取り、選択した水平位置でページヘッダーまたはフッターに画像を配置します。ページ余白は設定可能です。ターゲットワークシートは、名前で指定した特定のシートに画像を適用するか、空白のままにするとワークブック全体に画像を適用します。
認証 API リクエスト
毎 PDF4me ノード n8n 有効な 接続するための認証情報作成または選択して、 PDF4me API ワークフローがブランディング要求を安全に認証できるようにするためのキー。
見逃してはならない重要な事実

PDF4me Excel 画像ヘッダー/フッターパラメータパネルを追加する n8n
画像ヘッダー/フッターを追加するには、どのようなパラメータが必要ですか?
必須: 手術、 Excel ファイル入力方法、画像入力方法、両方の方法に一致する入力フィールド、および出力ファイル名。ヘッダーまたはフッターへの適用、画像の位置、対象ワークシート、および4つの余白フィールドには、すべて動作するデフォルト値が付属しています。
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| Operation | Required | Selects the PDF4me Excel action to run. Choose Add Image Header/Footer. | Add Image Header/Footer |
| Excel File Input Method | Required | How 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 Name | Conditional | Name 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 |
| Image Input Method | Required | How the image reaches the node, chosen independently of the workbook input. Supports Binary Data, Base64 String, or URL. | From Previous Node (Binary Data) |
| Image Binary Data Property Name | Conditional | Name of the binary property on the incoming n8n item holding the image file. Applies when Image Input Method is binary data. | image |
| Apply to Header or Footer | Optional | Toggle that places the image in the header when on, or the footer when off. Default true (header). | true |
| Image Position | Optional | Horizontal placement of the image. Left, Center, or Right. Default Center. | Center |
| Target Worksheets | Optional | Comma-separated worksheet names to apply the image to. Leave blank to apply it to every worksheet. | Sheet1 |
| Top Margin | Optional | Top page margin in centimeters. Default 1.9. | 1.9 |
| Bottom Margin | Optional | Bottom page margin in centimeters. Default 1.9. | 1.9 |
| Left Margin | Optional | Left page margin in centimeters. Default 1.9. | 1.9 |
| Right Margin | Optional | Right page margin in centimeters. Default 1.9. | 1.9 |
| Output File Name | Required | Filename for the branded workbook the node returns. Include the .xlsx extension. | excel_with_image_header_footer.xlsx |
出力フィールド
成功したランは1 n8n 持ち運んでいるアイテム JSON メタデータと、ブランド化されたワークブックをバイナリデータとして含む。
| 分野 | タイプ | 内容物 |
|---|---|---|
success | Boolean | True when the image was applied successfully. Use it to route error-handling branches. |
fileName | String | Filename of the branded workbook, matching Output File Name. |
fileSize | Number | Size of the returned workbook in bytes. |
originalFileName | String | The filename of the input workbook, echoed back for tracking. |
isHeader | Boolean | True when the image was placed in the header, false when placed in the footer. |
position | String | Horizontal alignment applied to the image: Left, Center, or Right. |
worksheetNames | Array | Worksheet names the image was applied to. |
topMargin | Number | Top page margin in centimeters, matching the Top Margin input. |
bottomMargin | Number | Bottom page margin in centimeters, matching the Bottom Margin input. |
leftMargin | Number | Left page margin in centimeters, matching the Left Margin input. |
rightMargin | Number | Right page margin in centimeters, matching the Right Margin input. |
message | String | Human-readable result message for the operation. |
Binary (data) | Binary | The branded .xlsx workbook. Pass into Write Binary File, Email, or a cloud-storage upload. |
N8N 行動対応
- JSON
- Schema
- Binary
JSON 回答形式
[
{
"fileName": "excel_with_image_header_footer.xlsx",
"fileSize": 221849,
"success": true,
"originalFileName": "myExcelFile.xlsx",
"isHeader": true,
"position": "Center",
"worksheetNames": ["Sheet1"],
"topMargin": 1.9,
"bottomMargin": 1.9,
"leftMargin": 1.9,
"rightMargin": 1.9,
"message": "Image header/footer added to Excel file successfully"
}
]
スキーマビュー
1 item
fileName: T excel_with_image_header_footer.xlsx
fileSize: # 221849
success: true
originalFileName: T myExcelFile.xlsx
isHeader: true
position: T Center
worksheetNames: [] Array
[0]: T Sheet1
topMargin: # 1.9
bottomMargin: # 1.9
leftMargin: # 1.9
rightMargin: # 1.9
message: T Image header/footer added to Excel file successfully
タイプ指標: T = String、 # = Number、 [] = Array。
バイナリデータビュー
data
File Name: excel_with_image_header_footer.xlsx
File Extension: xlsx
Mime Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
File Size: 221.8 kB
バイナリデータアクセス: ワークブックにアクセスするには $binary.data.dataダウンロード、メール送信、または保存の準備ができています。
画像ヘッダー/フッターの設定方法 n8n?
- 追加する PDF4me Excel ノードをワークフローに追加して設定します 手術 に 画像ヘッダー/フッターを追加。
- で 接続するための認証情報選択してください PDF4me API 認証情報を使用するか、またはあなたの API 鍵。
- セット Excel ファイル入力方法 そして バイナリデータプロパティ名 ソースワークブック用。
- セット 画像入力方法 そして 画像バイナリデータプロパティ名 ロゴや画像用。
- スイッチ ヘッダーまたはフッターに適用する ヘッダー画像の場合はオン、フッター画像の場合はオフに設定します。
- セット 画像の位置 に 左、 中心、 または 右。
- セット 目標ワークシートまたは、空白のままにして画像全体を適用し、必要に応じて余白を調整してください。
- セット 出力ファイル名 で終わる
.xlsxノードを実行し、ブランド化されたワークブックを次の処理にルーティングします。
典型的な構成
ワークフローの例Common n8n workflow patterns using Add Image Header/Footer for Excel.
- スケジュールトリガーは、週ごとの数値ワークブックを作成します。
- 画像ヘッダー/フッターを追加すると、ヘッダーまたはフッターに適用、画像の位置を右に設定して、会社のロゴが挿入されます。
- ブランドロゴ入りのレポートは、関係者にメールで送信されます。
- ワークフローがクライアントのロゴを取得します URL から CRM 記録。
- 画像入力方法は次のように設定されています。 URL つまり、ロゴはそのレコードから直接読み込まれるということです。
- ワークブックのヘッダーには、クライアント独自のブランドロゴが入っています。
- マネージャーが社内ツールで承認すると、承認用ウェブフックが起動します。
- 画像ヘッダー/フッターの追加機能は、「ヘッダーまたはフッターに適用」をオフにした状態で実行され、承認グラフィックをフッターに配置します。
- スタンプが押されたワークブックはアーカイブされます SharePoint。
- 複数シートのワークブックには、生データタブと要約シートが含まれています。
- ターゲットワークシートは「概要」に設定されているため、生データタブにはブランド表示はされません。
- ブランド化された要約シートは、 PDF 配布用。
実践的なヒント
チートシート
| 分野 | 価値 |
|---|---|
| Operation | Add Image Header/Footer |
| Excel File Input Method | From Previous Node (Binary Data) |
| Binary Data Property Name | data |
| Image Input Method | From Previous Node (Binary Data) |
| Image Binary Data Property Name | image |
| Apply to Header or Footer | on (header) |
| Image Position | Center |
| Target Worksheets | Sheet1 (blank for all) |
| Top / Bottom / Left / Right Margin | 1.9 cm each |
| Output File Name | excel_with_image_header_footer.xlsx |
| Credentials | PDF4me API credential |