Go to example tasks

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.

Try for free
PDF to Text & OCR - Scanned PDFs, Images, Word, Japanese
PDF to Text & OCR - Scanned PDFs, Images, Word, Japanesequietworkslab/pdf-text-extractor
Status
File name
Link number
Format
+19 fields
Text
Number
Boolean
List
Object

Input

File links
Remove headers, footers and page numbers:true
Line breaks:smart

Output fields

Status
File name
Link number
Format
Part
From page
To page
Pages in file
Characters
Needs OCR
Garbled text suspected
Pages without text
Vertical text pages
Removed lines
Text source
OCR pages
Pages not OCR'd
Charged events
Charged OCR pages
Error code
Error message
OCR note
Text

How it works

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.

Image

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

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

$0.003 per started 20 PDF pages with text or 50,000 DOCX characters; $0.004 per page read by AI OCR, plus the AI model billed to your account by apify/openrouter (no markup). Failed files, blank pages, garbled-looking text and samples are free.