How to convert PDF to Markdown
- Choose a PDF with real text (up to 300 pages). If it has a password, enter it when asked.
- Check the counts of headings, lists, tables and links, choose whether to keep page numbers and what goes between pages, and switch to Preview to see the result.
- Copy the Markdown or download the .md file.
How it works
The converter reads where each piece of text sits and how big it is. The size most of the text uses counts as body text; lines at least 1.6 times that size become # headings, 1.3 times ## and 1.15 times ###. Lines starting with a bullet (•, –, -) or a number like 1. or a) become list items, and indented lines below an item continue it. Text set apart in columns on two or more lines in a row becomes a table. Other lines join into paragraphs until a larger gap or a line that was clearly broken on purpose (a short line whose next word would have fitted). Web and email links in the PDF are kept; other kinds of links are dropped.
Example
A page with a 24 pt title, a 15 pt subheading, two lines of 11 pt text, two bullets, two numbered steps and a sentence with a link becomes:
# Project Handbook
## Getting started
Install the app from the store and sign in. Your data stays on your phone.
- Open Settings
- Choose a theme
1. Back up weekly
2. Keep two copies
Read [the guide](https://palz.co.in/guide) for details.24 ÷ 11 = 2.2 times the body size, so the title is a level 1 heading; 15 ÷ 11 = 1.36, so the subheading is level 2. Pages are separated by a line of three dashes.
Want a web page instead? Use PDF to HTML. For editing with formatting, PDF to Word is the better fit.