Convert PDF to MD

Turn PDF documents into Markdown. Headings, paragraphs, lists, links and tables whose cells line up in rows and columns are recovered from the text layout.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

PDF text as Markdown.Headings, lists, links and tables come back as plain Markdown text.

  1. What you get

    One MD file with the text of the PDF. Headings, paragraphs, lists and links are recovered from the text layout, so the structure of the document is written out as Markdown.

    Tables whose cells line up in rows and columns come back as Markdown tables.

  2. Scanned PDFs

    A scanned PDF holds pictures of pages, not text, so there is nothing to recover and the conversion stops with ocr_required. Set OCR to on to recognize the text in the pictures first.

    If OCR finds no text in the pictures either, the conversion fails with unsupported_elements. Recognition can misread blurry text. Set Language to the languages in the file, such as en,ko, so OCR knows which letters to expect. This matters most for Korean, Japanese and Chinese. Set Straighten pages to turn crooked scans straight before they are read.

  3. Options

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

    OCR is on auto by default. It then recognizes text only when Language or Straighten pages is set. Choose off to read only the text the file already has.

    A PDF that asks for a password opens with the Password option. The password is used for this one job and deleted when it ends. Without it, a locked file fails with input_encrypted.

PDF and MD.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 · MD

Markdown

Plain text with light markup for headings, lists, links and code. What agents and developers write in.

Extensions
.md .markdown .mdown
MIME type
text/markdown
Kind
Text and data

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

terminal
$ cv convert report.pdf report.md
$ cv convert report.pdf report.md

Questions.What people ask about PDF to MD.

01OF 04

Yes. Set OCR to on, and the text in the page pictures is recognized first. Without it, the conversion stops with ocr_required.

Tables whose cells line up in rows and columns come back as Markdown tables.

Yes. Set Pages to single pages and ranges separated by commas, such as 1-3,7.

The file needs a password. Enter it in the Password option and convert again.

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