Extract PDF Text
Read selectable text and download it as TXT
Extract PDF Text — what it does
Read the selectable text out of a PDF and download it as a plain TXT file, with a page separator of your choosing between pages. It recovers the words from a document whose layout you no longer need, which is what makes the content editable, searchable and reusable elsewhere.
Worked example
A three-page quarterly report run with the separator field at its default '--- Page {page} ---'. Each fixture page holds one line of text; the output is copied from the page exactly as it appeared.
Input — report-3p.pdf
Page 1: Quarterly report - page 1
Page 2: Quarterly report - page 2
Page 3: Quarterly report - page 3
Separator field: --- Page {page} ---Output — extracted text (status: 3 page(s) read.)
Quarterly report - page 1--- Page 2 ---Quarterly report - page 2--- Page 3 ---Quarterly report - page 3
With the default separator the text runs together with no line breaks, because the field cannot hold a newline. Clearing the field switches to the built-in separator, which puts a blank line before and after each '--- Page N ---' marker.
When this tool helps
- Getting the text of a report into an editor for quoting or rewriting.
- Extracting content for analysis, word counts or translation.
- Recovering text from a PDF when the original document file is long gone.
How to use it
- Choose the PDF file.
- Set the page separator.
- Process the extraction.
- Download the TXT file.
Accuracy, limits, and good practice
- Only real text comes out. A scanned page is an image of text and extracts as nothing, which is the fastest way to tell the two apart.
- Multi-column layouts often extract in reading order that jumps between columns; expect to reflow the output by hand.
- Tables lose their structure in plain text — for tabular data, extracting from the source or using a table tool works far better.
- Set a page separator you can search for: it turns the flat text file back into something where you can locate the page a passage came from.
Frequently asked questions
Why did I get no text at all?
The PDF is a scan. Its pages are images, and extracting requires OCR, which this tool does not perform.
Is formatting preserved?
No. The output is plain text, so bold, headings, columns and tables are all flattened.
Can I search inside a PDF instead?
Yes, the PDF text search tool finds matches and shows the page and surrounding snippet.
Is the reading order guaranteed?
It follows the order the text was placed in the file, which for complex layouts may not match how a human reads the page.
Why is everything on one line?
The separator is inserted exactly as typed, and a single-line field cannot contain a line break, so '--- Page 2 ---' is glued to the text on either side. Leave the field empty to get the built-in separator with blank lines around each marker, or search-and-replace the marker after downloading.
What is the downloaded file called, and when is the button enabled?
Always pdf-text.txt, UTF-8, regardless of the source name. The download button stays disabled until a run has produced at least one character of text, so a scanned PDF with no text layer leaves it disabled and shows 'No selectable text found.' instead.
Related tools on this site
- PDF Visual Comparison — Compare two PDF pages and highlight visible pixel differences
- Crop PDF Pages — Trim page margins by points on every PDF page
- Clean PDF Metadata — Remove document properties and identifying metadata
Further reading: Preparing a PDF for sharing: order, pages, numbering, stamps and what it still carries
Everything above runs inside this page. Extract PDF Text needs no account, no upload, and no server round trip — close the tab and nothing is left behind.
提取 PDF 文字能做什麼
把 PDF 中可選取的文字讀出來,並以你指定的分頁標記存成純文字 TXT。當版面不再需要、只想要文字時,它把內容救出來,讓那些字重新變得可編輯、可搜尋、可再利用。
實際範例
三頁季報,分隔符欄位維持預設的 --- Page {page} ---。範例檔每頁只有一行文字;下方文字是頁面實際顯示的內容原樣複製。
來源:report-3p.pdf
Page 1: Quarterly report - page 1
Page 2: Quarterly report - page 2
Page 3: Quarterly report - page 3
Separator field: --- Page {page} ---顯示:提取的文字(狀態:3 page(s) read.)
Quarterly report - page 1--- Page 2 ---Quarterly report - page 2--- Page 3 ---Quarterly report - page 3
預設分隔符會讓文字全部黏成一行沒有換行,因為該欄位放不進換行字元。把欄位清空會改以內建分隔符,在每個 --- Page N --- 前後各留一個空行。
什麼時候用得上
- 把報告文字放進編輯器以便引用或改寫。
- 為分析、字數統計或翻譯擷取內容。
- 原始文件檔早已不見時,從 PDF 取回文字。
使用步驟
- 選擇 PDF 檔案。
- 設定分頁標記。
- 執行擷取。
- 下載 TXT 檔案。
精確度、限制與實務建議
- 只有真正的文字出得來。掃描頁是文字的圖片,擷取結果為空,這也是分辨兩者最快的方法。
- 多欄版面擷取出的閱讀順序常會在欄位之間跳動,預期要手動重排。
- 表格在純文字中會失去結構——表格資料建議從來源取得,或改用表格工具處理。
- 分頁標記請設成搜尋得到的字串:這樣純文字檔仍能讓你回頭定位某段話出自第幾頁。
常見問題
為什麼完全擷取不到文字?
那份 PDF 是掃描檔,頁面都是影像,擷取需要 OCR,本工具不提供。
格式會保留嗎?
不會。輸出是純文字,粗體、標題、分欄與表格都會被攤平。
可以直接在 PDF 裡搜尋嗎?
可以,PDF 文字搜尋工具會找出符合處,並顯示頁碼與前後片段。
閱讀順序有保證嗎?
它依文字在檔案中的放置順序輸出,複雜版面下未必與人眼閱讀的順序相同。
為什麼全部擠在同一行?
分隔符照你打的原樣插進去,而單行欄位放不進換行,所以 --- Page 2 --- 會跟兩邊的文字黏在一起。把欄位留空就會改以內建分隔符,標記前後各有空行;或者下載後再以搜尋取代把標記換成換行。
下載的檔案叫什麼?按鈕何時可按?
一律叫 pdf-text.txt,UTF-8 編碼,與來源檔名無關。下載按鈕要等某次執行至少提取到一個字元才會啟動,所以沒有文字層的掃描檔會讓按鈕維持停用,並顯示 No selectable text found.。
本站相關工具
- PDF 視覺差異比較 — 比較兩個 PDF 頁面並標示可見的像素差異
- PDF 頁面裁邊 — 以點數裁除每個 PDF 頁面的四周邊距
- 清除 PDF 中繼資料 — 移除文件屬性與識別資訊
延伸閱讀: 分享前整理 PDF:順序、頁面、頁碼、浮水印,以及檔案仍帶著什麼
以上步驟全部在這個頁面內完成,提取 PDF 文字 不需要註冊、不上傳檔案、也不經過伺服器,關閉分頁後不會留下任何資料。