Skip to main content

Remove Header/Footer from Excel using n8n action

PDF4me Remove Header Footer from Excel enables selective removal of headers and footers from Excel documents through n8n automation workflows. Process Excel files via n8n triggers, binary data, base64 strings, or public URLs to remove left, center, and right sections from both headers and footers independently, with full control over worksheet targeting (specific sheets or all sheets) and culture-specific localization. This solution is ideal for document standardization, template cleanup, preparation for rebranding, and automated formatting workflows that require selective header/footer removal with granular control and seamless integration.

Setup

Add the PDF4me "Remove Header Footer" node to your n8n workflow and configure the required parameters. For initial setup instructions, see our n8n Integration Guide.

Prerequisites:

  • PDF4me API credentials
  • n8n workflow access

Configuration:

  1. Add PDF4me node to workflow
  2. Select "Remove Header/Footer" action
  3. Configure input parameters (see below)
Remove Header Footer from Excel

Parameters

Complete list of parameters for the Remove Header Footer action. Configure these parameters to control header/footer removal.

Important: Parameters marked with an asterisk (***) are required. All section removal flags are optional and default to false.

ParameterTypeDescriptionExample
Input Data Type***StringExcel Input Format Selection
• Choose the format of your Excel data input
• PDF4me supports multiple input types
• Options: Binary Data, Base64 String, or URL
Binary Data
Input Binary Field***BinaryBinary Excel File Input (Required if Binary Data)
• Reference Excel file (.xlsx, .xls) from previous n8n node or file upload
• PDF4me processes binary Excel files with automatic format detection
• Required when Input Data Type is "Binary Data"
{{ $binary.data }}
Base64 Excel Content***StringBase64 Encoded Excel Input (Required if Base64 String)
• Provide Excel content (.xlsx, .xls) as base64 encoded string
• PDF4me automatically decodes and processes the Excel content
• Required when Input Data Type is "Base64 String"
UEsDBBQABgAI...
Excel URL***StringPublic Excel URL Input (Required if URL)
• Provide a public/open permission URL to the Excel file (.xlsx, .xls)
• PDF4me downloads and processes the Excel file from the provided URL
• Required when Input Data Type is "URL"
https://abc.com/data.xlsx
Excel Name***StringExcel Input Filename
• Specify the name of the input Excel file with proper extension (.xlsx, .xls)
• PDF4me uses this for format detection and processing optimization
data.xlsx
Remove Header LeftBooleanRemove Left Header Section
True - Remove left section (Section 0) of header
False - Preserve left header section
• Default: false
• Independent control of header sections
true
Remove Header CenterBooleanRemove Center Header Section
True - Remove center section (Section 1) of header
False - Preserve center header section
• Default: false
• Independent control of header sections
true
Remove Header RightBooleanRemove Right Header Section
True - Remove right section (Section 2) of header
False - Preserve right header section
• Default: false
• Independent control of header sections
false
Remove Footer LeftBooleanRemove Left Footer Section
True - Remove left section (Section 0) of footer
False - Preserve left footer section
• Default: false
• Independent control of footer sections
true
Remove Footer CenterBooleanRemove Center Footer Section
True - Remove center section (Section 1) of footer
False - Preserve center footer section
• Default: false
• Independent control of footer sections
true
Remove Footer RightBooleanRemove Right Footer Section
True - Remove right section (Section 2) of footer
False - Preserve right footer section
• Default: false
• Independent control of footer sections
false
Worksheet NamesStringComma-Separated Worksheet Names
• List of worksheet names to process
• Format: "Sheet1,Summary,Report"
Worksheet Selection Logic: If WorksheetNames has values → Processes those named worksheets. If both WorksheetNames and WorksheetIndexes are empty → Processes ALL worksheets in the workbook
• Worksheet names must match exactly
Sheet1,Report
Worksheet IndexesStringComma-Separated Indexes (0-based)
• List of worksheet indexes to process
• Format: "0,2,4" for first, third, and fifth sheets
Worksheet Selection Logic: If WorksheetIndexes has values → Processes those indexed worksheets. If both parameters have values → Processes worksheets matching either criteria (union)
0-based indexing: Index 0 = first worksheet
0,1
Culture NameStringCulture Code for Localization
• Culture/locale code for text rendering
• Examples: "en-US", "de-DE", "fr-FR"
• Empty string uses invariant culture
• Default: "" (empty string)
en-US
Binary Data Output Name***StringBinary Data Output Mapping
• Define the variable name for accessing generated Excel binary data
• Used in subsequent workflow actions
• Essential for workflow automation
document

Output

Output Parameters

ParameterTypeDescriptionExample
fileNameStringExcel document filename without header/footer - The name of the output Excel document file after header/footer removalexcel_without_header_footer.xlsx
fileSizeNumberFile size in bytes - The size of the Excel document in bytes after header/footer removal212810
successBooleanPDF4me operation status - Boolean flag indicating the success or failure of the header/footer removal process. PDF4me returns true for successful operations and false for any errorstrue
originalFileNameStringOriginal Excel document filename - The name of the input Excel document filemyExcelFile.xlsx
removeHeaderLeftBooleanLeft header removal status - Indicates whether the left header section was removed. true if removed, false if preservedfalse
removeHeaderCenterBooleanCenter header removal status - Indicates whether the center header section was removed. true if removed, false if preservedfalse
removeHeaderRightBooleanRight header removal status - Indicates whether the right header section was removed. true if removed, false if preservedfalse
removeFooterLeftBooleanLeft footer removal status - Indicates whether the left footer section was removed. true if removed, false if preservedfalse
removeFooterCenterBooleanCenter footer removal status - Indicates whether the center footer section was removed. true if removed, false if preservedfalse
removeFooterRightBooleanRight footer removal status - Indicates whether the right footer section was removed. true if removed, false if preservedfalse
worksheetNameStringWorksheet name - The name of the worksheet where header/footer removal was appliedSheet1
applyToAllWorksheetsBooleanApply to all worksheets - Indicates whether header/footer removal was applied to all worksheets. true if applied to all, false if applied to specific worksheet onlyfalse
messageStringOperation message - Descriptive message indicating the result of the header/footer removal operationHeader and footer removed from Excel file successfully

N8N Action Response

The PDF4me Remove Header/Footer API returns a response that can be viewed in multiple formats. Choose the view that best fits your needs:

JSON Response Format

The raw JSON response from the API:

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

Use Cases

Document Standardization and Cleanup

  • Remove old headers and footers before adding new branding
  • Clean up inconsistent header/footer formatting across documents
  • Standardize document appearance by removing outdated elements

Rebranding and Template Preparation

  • Remove old company logos and text before applying new branding
  • Clean templates for reuse by removing previous branding elements
  • Prepare documents for rebranding initiatives with complete header/footer removal

Client Deliverable Preparation

  • Remove internal headers and footers before client delivery
  • Sanitize documents by removing confidential internal markings
  • Prepare clean documents for external distribution

Get Help