Saltar al contenido principal

Eliminar encabezado y pie de página de Excel en n8n

Eliminar encabezado/pie de página es un PDF4me Excel operación en n8n que despeja las secciones izquierda, central y derecha de Excel Encabezados y pies de página de forma independiente, en una hoja de cálculo o en todo el libro. Úselo para eliminar la imagen de marca anterior antes de un cambio de marca, limpiar plantillas para su reutilización o eliminar marcas internas antes de enviar un libro de trabajo a un cliente.

Lo que hace este nodo

PDF4me ExcelEliminar encabezado/pie de página despeja Excel Encabezados y pies de página sección por sección. Seis interruptores independientes controlan las posiciones izquierda, central y derecha tanto del encabezado como del pie de página, lo que permite eliminar un logotipo de una esquina sin modificar el número de página en otra. El nombre de la hoja de cálculo de destino aplica la eliminación a una sola hoja o a todas las hojas si se dejan en blanco.

Entradas de blog relacionadas
Aún no hay ninguna entrada de blog sobre esta función; estará disponible próximamente.
Mientras tanto, echa un vistazo al blog de PDF4me para encontrar tutoriales y flujos de trabajo para todas las plataformas.
Visita el blog

Autenticando su API Pedido

Cada PDF4me nodo en n8n requiere un válido Credencial para conectarse con. Crea o selecciona uno que contenga tu PDF4me API clave para que el flujo de trabajo pueda autenticar las solicitudes de limpieza de forma segura.

Datos importantes que no debes perderte

Seis interruptores, todos independientes y desactivados por defecto.
Las opciones Eliminar encabezado (izquierda, centro, derecha) y Eliminar pie de página (izquierda, centro, derecha) están desactivadas por defecto. No se elimina nada a menos que actives explícitamente una sección.
El nombre de la hoja de cálculo de destino vacía significa que cada hoja
Si se deja el nombre de la hoja de cálculo de destino en blanco, la eliminación se aplica a todo el libro de trabajo y los informes de respuesta se muestran como "aplicar a todas las hojas de cálculo". Si se nombra una hoja, la eliminación se limita a esa hoja de cálculo en particular.
Las distintas hojas de cálculo requieren ejecuciones de nodos separadas.
El nodo Target Worksheet Name admite una hoja o todas las hojas, no una lista mixta. Encadene un segundo nodo Remove Header/Footer cuando necesite eliminar secciones distintas de diferentes hojas de cálculo.
Nodo PDF4me Excel en n8n configurado en Operación Eliminar encabezado/pie de página, Método de entrada de archivo Excel desde el nodo anterior (datos binarios), Nombre de propiedad de datos binarios data, Eliminar encabezado izquierda centro derecha y Eliminar pie de página izquierda centro derecha desactivan todo, Nombre del archivo de salida excel_without_header_footer.xlsx, Nombre del documento de origen myExcelFile.xlsx, Nombre de datos binarios de salida data, Nombre de la hoja de cálculo de destino field

PDF4me Excel Eliminar el panel de parámetros de encabezado/pie de página en n8n

¿Qué parámetros necesita la función Eliminar encabezado/pie de página?

Requerido: Operación, Excel Método de entrada de archivo, el campo de entrada que coincide con ese método y el nombre del archivo de salida. Los seis interruptores de eliminación de secciones están desactivados por defecto, y el nombre de la hoja de cálculo de destino, el nombre de la cultura, el nombre del documento de origen y el nombre de los datos binarios de salida son opcionales.

ParámetroRequeridoLo que haceEjemplo
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

Campos de salida

Una carrera exitosa devuelve uno n8n artículo que transporta JSON metadatos más el libro de trabajo limpio como datos binarios.

CampoTipoLo que contiene
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 Respuesta a la acción

JSON Formato de respuesta

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

¿Cómo configuro la opción para eliminar el encabezado/pie de página? n8n¿

  1. Añade el PDF4me Excel nodo a su flujo de trabajo y configure Operación a Eliminar encabezado/pie de página.
  2. En Credencial para conectarse con, seleccione su PDF4me API credencial o crea una con tu API llave.
  3. Colocar Excel Método de entrada de archivos a Desde el nodo anterior (datos binarios) y establecer Nombre de la propiedad de datos binarios a la propiedad que contiene el libro de trabajo, normalmente data.
  4. Activa los interruptores de sección que necesites: Eliminar encabezado izquierdo, Centro, Bien y Eliminar pie de página izquierdo, Centro, Bien.
  5. Colocar Nombre de la hoja de trabajo objetivo Puede seleccionar una hoja específica o dejarla en blanco para todo el libro de trabajo.
  6. Opcionalmente se puede configurar Nombre de la cultura para texto de encabezado o pie de página sensible a la configuración regional.
  7. Colocar Nombre del archivo de salida terminando en .xlsx, ejecuta el nodo y envía el libro de trabajo limpio hacia adelante.

Configuraciones típicas

Ejemplos de flujo de trabajoCommon n8n workflow patterns using Remove Header/Footer for Excel.
Eliminar la imagen de marca antigua antes de un cambio de marca.
  1. Un proceso por lotes extrae plantillas de informes antiguas de una unidad compartida.
  2. La función Remove Header/Footer se ejecuta con Remove Header Center y Remove Footer Center activados para borrar el texto del logotipo anterior.
  3. PDF4me Excel Agregar texto Encabezado Pie de página aplica la nueva imagen de marca posteriormente.
Desinfecte las notas internas antes de entregarlas al cliente.
  1. Un webhook se activa cuando un informe se marca como listo para su entrega externa.
  2. La opción Eliminar encabezado/pie de página borra la sección Eliminar encabezado izquierdo, donde se colocaron las iniciales del revisor interno.
  3. El libro de trabajo depurado se envía por correo electrónico al cliente.
Restablecer una plantilla para su reutilización.
  1. El libro de trabajo del proyecto finalizado se copia a una carpeta de plantillas.
  2. Los seis interruptores de sección están activados, borrando todas las secciones de encabezado y pie de página.
  3. La plantilla de encabezado en blanco se guarda para el próximo proyecto.
Limpie únicamente la hoja de resumen.
  1. Un libro de trabajo de varias hojas contiene pestañas con datos sin procesar, además de una hoja de resumen.
  2. El nombre de la hoja de cálculo de destino está configurado como Resumen para que las pestañas de datos sin procesar conserven sus encabezados.
  3. La hoja de resumen limpia se exporta a PDF para su distribución.

Consejos prácticos

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.

Hoja de trucos

CampoValor
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

Preguntas frecuentes

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.

Acciones relacionadas

La misma tarea en otras plataformas

Obtén ayuda