Fix broken line breaks in text copied from Japanese PDFs
Quiet Works Lab
Text extracted from Japanese PDFs often breaks in the middle of sentences and carries page numbers such as - 1 - and the same header on every page. This task joins the broken lines back into sentences, removes page numbers and headers repeated near page breaks, and normalizes the characters; paragraphs and lists stay separate. Joining and header removal are guesses: check the result.
Input
Output fields
Sign up on Apify or log in
The Japanese Text Normalizer & RAG Chunker Actor is ready to run with the inputs already set for "Fix broken line breaks in text copied from Japanese PDFs". Sign up or log in and you'll land in Apify Console with a copy of this exact task.
Start the "Fix broken line breaks in text copied from Japanese PDFs" task
The Japanese Text Normalizer & RAG Chunker Actor will start running based on the input automatically. You can also change all the input fields, like texts, join lines broken by pdf extraction, and more, to match your specific use case.
Receive the "Fix broken line breaks in text copied from Japanese PDFs" 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 document index, chunk index, characters, 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 "Fix broken line breaks in text copied from Japanese PDFs" task via API.

Integrate "Fix broken line breaks in text copied from Japanese PDFs" into your workflow
Connect "Fix broken line breaks in text copied from Japanese PDFs" 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
The PDF line break task joins a line with the next one when the sentence continues. It never joins after 。 or :, before a list item or heading, or after a short line, and it needs at least one long line in the document.
The PDF line break task removes lines that are only a page number, such as - 3 -, and short lines that repeat at least 3 times near page breaks, such as a running header. This step is off by default in the Actor and on in this task.
No. The PDF line break task cleans text that was already extracted, for example by a PDF text extraction Actor whose output dataset you choose as the input.