PDF guide
How to extract text from a PDF (as plain text, HTML or Markdown)
Short answer
Open PDF to Text, add the PDF, choose whether to keep page separators, and download a plain TXT file. For text with headings and paragraphs kept, use PDF to HTML / Markdown. If the result is empty, the PDF is a scan: run OCR first. Raaj PDF does this free in your browser.
Copying text out of a PDF page by page is slow and often breaks lines in odd places. Extracting it in one go gives you everything at once, ready to paste into an email, a document, a translation tool or an AI assistant.
Extract plain text
- Open PDF to Text and select the PDF.
- Tick Keep page separators if you want to see where each page starts (useful for citing page numbers); untick it for one continuous text.
- Convert and download the
.txtfile. It opens in any text editor, and you can paste it anywhere.
Keep headings and paragraphs: HTML or Markdown
Plain text loses structure. PDF to HTML / Markdown rebuilds headings and paragraphs:
- HTML: a web page you can open in a browser or paste into a website editor.
- Markdown: lightweight formatting (
#for headings) used by many note apps, wikis and documentation tools, and easy to feed into AI tools.
Which format for which job
| Job | Format |
|---|---|
| Paste into an email or chat | TXT |
| Translate or summarise with a tool | TXT or Markdown |
| Put into a website or blog | HTML |
| Keep notes in Notion, Obsidian or a wiki | Markdown |
| Edit as a document with formatting | Word: see PDF to Word |
| Work with tables as numbers | Excel: see PDF to Excel |
When nothing comes out
If the text file is empty or full of gibberish:
- The PDF is a scan (a picture of text). Run OCR in the document's language first, then extract.
- The PDF uses a custom font encoding, common with older Urdu and Lisan ud-Dawat documents. Raaj PDF handles Al-Kanz and Kanz al-Marjaan text (see the Lisan ud-Dawat PDF guide); for other unusual fonts, OCR is the fallback.
Right-to-left text
Lines in Urdu, Arabic or Lisan ud-Dawat are read from right to left during extraction, so words come out in the right order.
Common mistakes
- Expecting tables to stay tables in plain text: columns become spaced text. Use PDF to Excel for tables.
- Copying from a password-protected PDF that forbids copying: you need the owner's permission or password.
- Not checking OCR output: OCR text needs proofreading, especially numbers and names.
Frequently asked questions
Can I extract text from only some pages?
Split or extract those pages first (how to split a PDF), then extract the text.
Is text extraction free?
Yes, in Raaj PDF, with no sign-up.
Is my PDF uploaded?
No. Extraction runs in your browser.