Convert PDF to TXT

Turn PDF documents into TXT. Text in reading order, with a form feed between pages.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop PDF files on the dialor turn it to pick what to do

The text of a PDF in one file.Words come out in reading order, with a form feed between pages.

  1. What you get

    One TXT file with the text of the PDF in reading order. A form feed marks where each page ends and the next begins.

    The result is plain text with no formatting at all.

  2. Scanned PDFs

    A scanned PDF holds pictures of pages, not text. When OCR is left at auto and neither Language nor Straighten pages is set, the conversion stops with ocr_required.

    Set OCR to on to recognize the text in the pictures as well. Recognition takes longer and can misread blurry text. If OCR finds no text in the pictures either, the conversion stops with unsupported_elements.

    Set Language to name the languages in the text, such as en,ko. This matters most for Korean, Japanese and Chinese. Set Straighten pages to turn crooked scans straight before they are read, which helps OCR.

  3. Pages and passwords

    Set Pages to convert only some pages, such as 1-3,7. Every page is read when it is left out.

    A PDF that asks for a password stops with input_encrypted unless you fill in Password. The password is used for this one job and deleted when it ends.

    A file that cannot be parsed stops with input_corrupted.

PDF and TXT.What each format is, and the options this conversion takes.

  1. 01 · deskew

    Straighten pages

    Turns pages that were scanned a little crooked back to straight before reading them, which helps OCR.

  2. 02 · language

    Language

    The languages the text is in, so OCR knows which letters to expect. Without it the text is read as English, so letters such as é, ß and ł come out wrong and other scripts, such as Cyrillic, Arabic, Thai, Korean or Chinese, are not read. Separate several with commas, such as fr,en.

  3. 03 · ocr

    OCR

    Whether to recognize the text in scanned pages and pictures. Recognition takes longer and can misread blurry text.

    • auto Recognize text only when Language or Straighten pages is set.
    • on Always recognize the text.
    • off Read only text the file already has.
    auto · on · off default auto
  4. 04 · pages

    Pages

    Converts only some pages. Write single pages and ranges separated by commas, such as 1-3,7. Every page is read when it is left out.

  5. 05 · password

    Password

    Opens a file that asks for a password. The password is used for this one job and deleted when it ends. Without it, a locked file fails with input_encrypted.

The formats

From · PDF

PDF

Fixed-layout pages that look the same everywhere. The exchange format for anything that will be printed or signed.

Extensions
.pdf
MIME type
application/pdf
Kind
Documents
To · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data

In your code.The same PDF to TXT conversion through the API, for your app or your agent.

terminal
$ cv convert report.pdf report.txt
$ cv convert report.pdf report.txt

Questions.What people ask about PDF to TXT.

01OF 04

The pages are pictures with no text to read. Set OCR to on, or set Language or Straighten pages, so the text in the pictures is recognized.

Yes. Set Pages to a range such as 1-3,7, and only those pages are read.

Fill in Password. Without it, the conversion stops with input_encrypted.

No. The TXT is plain text with no formatting. Only the words are kept, in reading order, with a form feed between pages.

More conversions.Other ways in and out of PDF and TXT.