Lewati ke konten utama

Tambahkan Gambar Header atau Footer ke Excel di dalam n8n

Tambahkan Gambar Header/Footer adalah sebuah PDF4me Excel operasi di n8n Fungsi ini menyisipkan logo atau gambar merek ke dalam header atau footer buku kerja .xlsx, dengan posisi di kiri, tengah, atau kanan, pada satu lembar kerja atau setiap lembar kerja. Gunakan fungsi ini untuk menerapkan branding perusahaan yang konsisten pada laporan yang dihasilkan tanpa perlu membuka file. Excel.

Fungsi node ini

PDF4me ExcelTambahkan Gambar Header/Footer Fungsi ini mengambil buku kerja sumber dan input gambar terpisah, kemudian menempatkan gambar ke dalam header atau footer halaman pada posisi horizontal yang dipilih, dengan margin halaman yang dapat dikonfigurasi. Target Worksheets menerapkan gambar ke lembar kerja tertentu berdasarkan nama, atau ke seluruh buku kerja jika dibiarkan kosong.

Postingan Blog Terkait
Belum ada postingan blog untuk fitur ini — akan segera hadir.
Sementara itu, jelajahi blog PDF4me untuk menemukan tutorial dan alur kerja di berbagai platform.
Kunjungi blog ini

Memverifikasi Identitas Anda API Meminta

Setiap PDF4me simpul di n8n memerlukan validitas Kredensial untuk terhubung denganBuat atau pilih salah satu yang memuat milik Anda. PDF4me API kunci agar alur kerja dapat mengautentikasi permintaan branding dengan aman.

Fakta Penting yang Tidak Boleh Anda Lewatkan

Dua input terpisah: buku kerja dan gambar.
Excel Metode Input File dan Metode Input Gambar dikonfigurasi secara independen, masing-masing dengan Nama Properti Data Binernya sendiri, sehingga logo dapat berasal dari node hulu yang berbeda dari buku kerja itu sendiri.
Satu tombol pengalih memilih header atau footer, bukan keduanya.
Opsi "Terapkan ke Header atau Footer" menempatkan gambar di satu lokasi per eksekusi. Menempatkan logo di header dan tanda yang berbeda di footer membutuhkan dua eksekusi node.
Margin default Excelstandar 1,9 cm
Margin atas, bawah, kiri, dan kanan semuanya secara default bernilai 1,9 sentimeter, sesuai dengan ExcelMargin halaman bawaan dari program ini sudah tersedia, sehingga sebagian besar buku kerja tidak memerlukan perubahan margin sama sekali.
Node PDF4me Excel di n8n diatur ke Operasi Tambah Header/Footer Gambar, Metode Input File Excel dan Metode Input Gambar keduanya Dari Node Sebelumnya (Data Biner), Nama Properti Data Biner data, Nama Properti Data Biner Gambar image, Terapkan ke Header atau Footer (aktifkan), Posisi Gambar Tengah, Lembar Kerja Target Sheet1, Margin Atas Bawah Kiri Kanan 1.9, Nama File Output excel_with_image_header_footer.xlsx

PDF4me Excel Tambahkan panel parameter Header/Footer Gambar di n8n

Parameter apa saja yang dibutuhkan untuk menambahkan header/footer gambar?

Diperlukan: Operasi, Excel Metode Input File, Metode Input Gambar, kolom input yang sesuai dengan kedua metode, dan Nama File Output. Terapkan ke Header atau Footer, Posisi Gambar, Lembar Kerja Target, dan keempat kolom margin semuanya dilengkapi dengan pengaturan default yang berfungsi.

ParameterDiperlukanApa fungsinya?Contoh
OperationRequiredSelects the PDF4me Excel action to run. Choose Add Image Header/Footer.Add Image 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
Image Input MethodRequiredHow 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 NameConditionalName 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 FooterOptionalToggle that places the image in the header when on, or the footer when off. Default true (header).true
Image PositionOptionalHorizontal placement of the image. Left, Center, or Right. Default Center.Center
Target WorksheetsOptionalComma-separated worksheet names to apply the image to. Leave blank to apply it to every worksheet.Sheet1
Top MarginOptionalTop page margin in centimeters. Default 1.9.1.9
Bottom MarginOptionalBottom page margin in centimeters. Default 1.9.1.9
Left MarginOptionalLeft page margin in centimeters. Default 1.9.1.9
Right MarginOptionalRight page margin in centimeters. Default 1.9.1.9
Output File NameRequiredFilename for the branded workbook the node returns. Include the .xlsx extension.excel_with_image_header_footer.xlsx

Bidang Keluaran

Satu kali lari yang sukses akan menghasilkan satu n8n barang yang dibawa JSON metadata ditambah buku kerja bermerek sebagai data biner.

BidangJenisIsi di dalamnya
successBooleanTrue when the image was applied successfully. Use it to route error-handling branches.
fileNameStringFilename of the branded workbook, matching Output File Name.
fileSizeNumberSize of the returned workbook in bytes.
originalFileNameStringThe filename of the input workbook, echoed back for tracking.
isHeaderBooleanTrue when the image was placed in the header, false when placed in the footer.
positionStringHorizontal alignment applied to the image: Left, Center, or Right.
worksheetNamesArrayWorksheet names the image was applied to.
topMarginNumberTop page margin in centimeters, matching the Top Margin input.
bottomMarginNumberBottom page margin in centimeters, matching the Bottom Margin input.
leftMarginNumberLeft page margin in centimeters, matching the Left Margin input.
rightMarginNumberRight page margin in centimeters, matching the Right Margin input.
messageStringHuman-readable result message for the operation.
Binary (data)BinaryThe branded .xlsx workbook. Pass into Write Binary File, Email, or a cloud-storage upload.

N8N Tindakan dan Respons

JSON Format Respons

[
{
"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"
}
]

Bagaimana Cara Mengatur Penambahan Gambar Header/Footer di n8n?

  1. Tambahkan PDF4me Excel Tambahkan node ini ke alur kerja Anda dan atur. Operasi ke Tambahkan Gambar Header/Footer.
  2. Di dalam Kredensial untuk terhubung dengan, pilih milikmu PDF4me API atau buat yang baru dengan kredensial Anda. API kunci.
  3. Mengatur Excel Metode Input File Dan Nama Properti Data Biner untuk buku kerja sumber.
  4. Mengatur Metode Input Gambar Dan Nama Properti Data Biner Gambar untuk logo atau gambar.
  5. Mengalihkan Terapkan ke Header atau Footer Aktifkan untuk gambar header, atau nonaktifkan untuk gambar footer.
  6. Mengatur Posisi Gambar ke Kiri, Tengah, atau Benar.
  7. Mengatur Lembar Kerja Target, atau biarkan kosong untuk menerapkan gambar di mana saja, dan sesuaikan margin jika diperlukan.
  8. Mengatur Nama File Output berakhir di .xlsx, jalankan node tersebut, dan teruskan workbook bermerek tersebut.

Pengaturan Umum

Contoh Alur KerjaCommon n8n workflow patterns using Add Image Header/Footer for Excel.
Logo perusahaan pada setiap laporan yang dihasilkan.
  1. Schedule Trigger membuat buku kerja angka mingguan.
  2. Menambahkan Gambar Header/Footer menyisipkan logo perusahaan dengan opsi Terapkan ke Header atau Footer aktif, Posisi Gambar Kanan.
  3. Laporan bermerek tersebut dikirim melalui email kepada para pemangku kepentingan.
Kolaborasi merek klien pada hasil pekerjaan yang diserahkan.
  1. Alur kerja mengambil logo klien. URL dari sebuah CRM catatan.
  2. Metode Input Gambar diatur ke URL Jadi, logo tersebut dimuat langsung dari catatan itu.
  3. Buku kerja tersebut dikirimkan dengan branding klien sendiri di bagian header.
Stempel persetujuan di bagian bawah halaman.
  1. Webhook persetujuan akan aktif setelah manajer memberikan persetujuan di alat internal.
  2. Fitur Tambah Gambar Header/Footer berjalan dengan opsi Terapkan ke Header atau Footer dimatikan, dan menempatkan grafik persetujuan di bagian footer.
  3. Buku kerja yang telah dicap diarsipkan ke SharePoint.
Hanya mencantumkan merek pada lembar ringkasan.
  1. Buku kerja multi-lembar memuat tab data mentah ditambah lembar ringkasan.
  2. Target Worksheets diatur ke Summary sehingga tab data mentah tetap tidak bermerek.
  3. Lembar ringkasan bermerek diekspor ke PDF untuk didistribusikan.

Tips Praktis

Header and footer need separate runs
Apply to Header or Footer only picks one location per execution. Add a second node for the other placement.
Image and workbook inputs are independent
Image Input Method does not have to match Excel File Input Method. A logo can come from a public URL while the workbook comes from binary data.
Target Worksheets is comma-separated
List multiple sheet names like Sheet1,Summary to brand several sheets at once, or leave it blank for the whole workbook.
Margins are in centimeters, not inches
The 1.9 default matches Excel's standard margin in centimeters. Adjust with that unit in mind when nudging image placement.
Output File Name needs the .xlsx extension
Omitting it can leave downstream nodes unable to detect the format when writing or emailing the file.
Use a transparent PNG for a cleaner look
A transparent-background logo blends into the page better than a solid rectangle, especially over shaded header rows.

Lembar Panduan Singkat

BidangNilai
OperationAdd Image Header/Footer
Excel File Input MethodFrom Previous Node (Binary Data)
Binary Data Property Namedata
Image Input MethodFrom Previous Node (Binary Data)
Image Binary Data Property Nameimage
Apply to Header or Footeron (header)
Image PositionCenter
Target WorksheetsSheet1 (blank for all)
Top / Bottom / Left / Right Margin1.9 cm each
Output File Nameexcel_with_image_header_footer.xlsx
CredentialsPDF4me API credential

Pertanyaan Umum

Does the toggle add the image to the header or the footer?+
Apply to Header or Footer is a single toggle that switches placement between the two. Switched on, the image goes into the header; switched off, it goes into the footer. The response echoes the placement back as isHeader true or false.
What happens if Target Worksheets is left empty?+
The image is applied to every worksheet in the workbook. Entering one or more comma-separated sheet names restricts the image to those sheets only, and the response lists them back in worksheetNames.
Can I place a logo in the header and a different image in the footer?+
Yes, but not in one execution. Run the Add Image Header/Footer operation twice in the same workflow, once with Apply to Header or Footer switched on for the header image and once switched off for the footer image.
What units are the margin fields in?+
Top Margin, Bottom Margin, Left Margin, and Right Margin are all in centimeters and default to 1.9, matching Excel's standard page margin. Increase a margin to push the image further from the page edge.
Which image formats does Image Input Method accept?+
Common raster formats such as PNG, JPG, JPEG, and GIF are supported, supplied through Binary Data, a Base64 String, or a public URL, the same input pattern used throughout n8n's integrations for binary data.

Tindakan Terkait

Tugas yang Sama di Platform Lain

Dapatkan Bantuan