PDF guide
How to convert a text or Markdown file to PDF
Short answer
Open Text / Markdown to PDF, add one or more .txt, .md, code or log files, choose the page size, orientation and font, and convert. Markdown headings, lists, links and tables are formatted; plain text is laid out as written. For Urdu, Arabic or Lisan ud-Dawat, choose a matching font such as Kanz al-Marjaan or Al-Kanz. Raaj PDF does it free in your browser.
Plain text and Markdown are how many people write notes, documentation, READMEs and drafts. When you need to send or print them, a PDF looks finished and opens everywhere.
Convert step by step
- Open Text / Markdown to PDF.
- Select one or more files. It accepts
.txt,.md, code files (.js,.py,.java,.sqland others),.json,.csv,.log,.xml,.yamland similar text files. - Choose the Page size (A4, Letter, A5 and more) and Orientation.
- Choose a Font, or upload your own. For right-to-left writing, pick an Arabic-script font; Kanz al-Marjaan and Al-Kanz are built in for Lisan ud-Dawat.
- Convert and download. With several files, each becomes its own PDF, or download them together as a ZIP.
What Markdown formatting becomes
| Markdown | In the PDF |
|---|---|
# Heading, ## Subheading |
Headings in larger type |
- item or 1. item |
Bulleted and numbered lists |
**bold**, *italic* |
Bold and italic text |
[text](https://…) |
Links |
| Tables with ` | ` columns |
| Code blocks | Monospaced blocks |
Plain .txt files keep their line breaks and spacing as written.
Tips for a good-looking document
- Start with one
#heading as the document title. - Leave a blank line between paragraphs; Markdown joins lines without one.
- Use A5 for small booklets and notes, A4 or Letter for documents.
- Long code lines wrap or run off the page; break them in the source if they matter.
Writing Lisan ud-Dawat
If you type Lisan ud-Dawat in a text file, choose Al-Kanz or Kanz al-Marjaan as the font to get a printable PDF. If you can't type the script, write it in English letters in the transliteration tool first. See how to type Lisan ud-Dawat in documents.
After converting
- Combine several notes into one file: merge PDFs.
- Number the pages for printing: add page numbers.
Frequently asked questions
Can I convert a CSV to a PDF table?
A CSV opens as text here; for a proper table, use Excel to PDF, which reads CSV files as spreadsheets.
Do images in my Markdown appear?
Images linked from the internet may not load in the browser conversion; for documents with pictures, Word to PDF or exporting from your editor works better.
Is my file uploaded?
No. The conversion runs in your browser.