Go to example tasks

Fix broken line breaks in text copied from Japanese PDFs

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.

Try for free
Japanese Text Normalizer & RAG Chunker
Japanese Text Normalizer & RAG Chunkerquietworkslab/japanese-text-normalizer
Document index
Chunk index
Characters
Text
+1 field
Text
Number
Boolean
List
Object

Input

Texts:2026年度 事業報告書 当社は今年度、新しい会員向けサービスを開始し、会員数は前年より 約2割増えました。来年度は、地方の拠点を増やし、より多くの地 域でサービスを提供する予定です。 - 1 - 2026年度 事業報告書 主な取り組みは次のとおりです。 ・会員向けアプリの改善 ・問い合わせ窓口の時間延長 - 2 - 2026年度 事業報告書 来年度の課題は、問い合わせへの回答までの時間を短くすることと、 新しい地域での認知を高めることです。 - 3 -
Join lines broken by PDF extraction:true
Remove page numbers and repeated headers:true

Output fields

Document index
Chunk index
Characters
Text
Metadata

How it works

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.

Image

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

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

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.