Pular para o conteúdo principal

Remover cabeçalho e rodapé de Excel em n8n

Remover cabeçalho/rodapé é um PDF4me Excel operação em n8n que limpa as seções esquerda, central e direita de Excel Crie cabeçalhos e rodapés independentemente, em uma única planilha ou em toda a pasta de trabalho. Use essa ferramenta para remover a identidade visual antiga antes de uma reformulação, limpar modelos para reutilização ou higienizar marcas internas antes de enviar uma pasta de trabalho para um cliente.

O que este nó faz

PDF4me ExcelRemover cabeçalho/rodapé limpa Excel Cabeçalhos e rodapés de página seção por seção. Seis botões independentes controlam as posições esquerda, central e direita do cabeçalho e do rodapé, permitindo remover um logotipo de um canto sem alterar o número da página em outro. O campo "Nome da Planilha de Destino" aplica a remoção a uma única planilha ou a todas as planilhas, se deixado em branco.

Artigos relacionados no blogue
Ainda não há nenhuma publicação no blogue sobre esta funcionalidade — em breve.
Entretanto, explore o blogue da PDF4me para encontrar tutoriais e fluxos de trabalho para todas as plataformas.
Visite o blogue

Autenticando seu API Solicitar

Todo PDF4me nó em n8n requer um válido Credencial para se conectar comCrie ou selecione um que contenha o seu PDF4me API chave para que o fluxo de trabalho possa autenticar solicitações de limpeza com segurança.

Fatos importantes que você não deve perder

Seis interruptores, todos independentes e desligados por padrão.
As opções "Remover cabeçalho à esquerda, centralizado e à direita" e "Remover rodapé à esquerda, centralizado e à direita" estão definidas como falsas por padrão. Nada será removido a menos que você ative explicitamente a opção correspondente em uma seção.
O nome da folha de exercícios "Alvo Vazio" significa todas as folhas.
Deixar o campo "Nome da Planilha de Destino" em branco aplica a remoção a toda a pasta de trabalho e os relatórios de resposta mostram que applyToAllWorksheets é verdadeiro. Nomear uma planilha restringe a remoção a essa planilha específica.
Planilhas diferentes precisam de execuções de nós separadas.
O nó "Nome da Planilha de Destino" aceita uma planilha específica ou todas as planilhas, não uma lista mista. Utilize um segundo nó "Remover Cabeçalho/Rodapé" em cadeia quando diferentes planilhas precisarem ter seções diferentes removidas.
O nó PDF4me Excel em n8n está configurado para a operação "Remover Cabeçalho/Rodapé", o método de entrada do arquivo Excel é "Do Nó Anterior (Dados Binários)", a propriedade de dados binários é "data", e as opções "Remover Cabeçalho Esquerda, Centro e Direita" e "Remover Rodapé Esquerda, Centro e Direita" estão desativadas, o nome do arquivo de saída é "excel_without_header_footer.xlsx", o nome do documento de origem é "myExcelFile.xlsx", o nome dos dados binários de saída é "data" e o nome da planilha de destino é "field".

PDF4me Excel Remover o painel de parâmetros de cabeçalho/rodapé em n8n

Quais parâmetros são necessários para remover o cabeçalho/rodapé?

Obrigatório: Operação, Excel Método de entrada de arquivo, o campo de entrada correspondente a esse método e Nome do arquivo de saída. Todas as seis opções de remoção de seção estão desativadas por padrão, e Nome da planilha de destino, Nome da cultura, Nome do documento de origem e Nome dos dados binários de saída são opcionais.

ParâmetroObrigatórioO que fazExemplo
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 saída

Uma corrida bem-sucedida retorna um n8n item carregando JSON metadados mais a planilha limpa como dados binários.

CampoTipoO que contém
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 Resposta à ação

JSON Formato de resposta

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

Como faço para configurar a remoção do cabeçalho/rodapé? n8n?

  1. Adicione o PDF4me Excel Adicione um nó ao seu fluxo de trabalho e configure-o. Operação para Remover cabeçalho/rodapé.
  2. Em Credencial para se conectar com, selecione o seu PDF4me API credencial ou crie uma com a sua API chave.
  3. Definir Excel Método de entrada de arquivo para Do nó anterior (dados binários) e definir Nome da propriedade de dados binários para a propriedade que contém o caderno de exercícios, normalmente data.
  4. Ative as opções de seção que você precisa: Remover cabeçalho à esquerda, Centro, Certo e Remover rodapé à esquerda, Centro, Certo.
  5. Definir Nome da planilha alvo Para uma folha específica ou deixe em branco para toda a pasta de trabalho.
  6. Opcionalmente configurado Nome da cultura para texto de cabeçalho ou rodapé sensível à localização.
  7. Definir Nome do arquivo de saída terminando em .xlsx, execute o nó e encaminhe a planilha limpa adiante.

Configurações típicas

Exemplos de fluxo de trabalhoCommon n8n workflow patterns using Remove Header/Footer for Excel.
Remova a identidade visual antiga antes de fazer um rebranding.
  1. Um processo em lote extrai modelos de relatórios legados de uma unidade compartilhada.
  2. A opção Remover Cabeçalho/Rodapé é executada em conjunto com as opções Remover Centro do Cabeçalho e Remover Centro do Rodapé para apagar o texto do logotipo antigo.
  3. PDF4me Excel Adicionar cabeçalho e rodapé de texto aplica a nova identidade visual posteriormente.
Higienize as anotações internas antes da entrega ao cliente.
  1. Um webhook é acionado quando um relatório é marcado como pronto para entrega externa.
  2. Remover Cabeçalho/Rodapé limpa a opção Remover Cabeçalho à Esquerda, onde as iniciais do revisor interno estavam localizadas.
  3. A versão higienizada da apostila é enviada por e-mail ao cliente.
Redefina o modelo para reutilização.
  1. A planilha do projeto concluída é copiada para uma pasta de modelos.
  2. Todas as seis opções de alternância de seção são executadas corretamente, apagando todas as seções de cabeçalho e rodapé.
  3. O modelo de cabeçalho em branco é armazenado para o próximo projeto.
Limpe apenas a folha de resumo.
  1. Uma planilha com várias abas contém abas com dados brutos e uma aba de resumo.
  2. O nome da planilha de destino está definido como "Resumo", para que as guias de dados brutos mantenham seus cabeçalhos.
  3. A planilha de resumo limpa é exportada para PDF para distribuição.

Dicas práticas

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.

Folha de dicas

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

Perguntas frequentes

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.

Ações relacionadas

Mesma tarefa em outras plataformas

Obtenha ajuda