Remove headers, footers and page numbers from PDF text
Extracts the text of PDF files without the running headers, footers and page numbers that would repeat through the text: decorated page numbers such as - 12 - or Page 3 of 10, bare numbers that go up with the page, and top or bottom lines that repeat on at least half of the pages. Wrapped lines are joined into paragraphs. Run it as it is: 6 lines are removed from the 3-page sample PDF.
Input
Output fields
Sign up on Apify or log in
The PDF to Text & OCR - Scanned PDFs, Images, Word, Japanese Actor is ready to run with the inputs already set for "Remove headers, footers and page numbers from PDF text". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Remove headers, footers and page numbers from PDF text" task
The PDF to Text & OCR - Scanned PDFs, Images, Word, Japanese Actor will start running based on the input automatically. You can also change all the input fields, like file links, remove headers, footers and page numbers, and more, to match your specific use case.
Receive the "Remove headers, footers and page numbers from PDF text" output
Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, file name, link number, and more.
Integrate into your workflow
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Remove headers, footers and page numbers from PDF text" task via API.

Integrate "Remove headers, footers and page numbers from PDF text" into your workflow
Connect "Remove headers, footers and page numbers from PDF text" with 100+ integrations, or run it via API or MCP.
Webhook
n8n
Make
Zapier
Airbyte
Keboola
IFTTT
Hubspot
GDrive
Gmail
Apify MCP
GitHub
Slack
LangChain
LlamaIndex
Flowise
Pinecone
OpenAI
Mastra
Clay