docs/tools/txt-to-pdf.md
Convert plain text into a formatted PDF. You can upload .txt files or type directly into the built-in text editor. The tool supports multiple fonts, custom text colors, and a wide range of page sizes -- from A0 down to A10, plus US Letter, Legal, and Tabloid.
| Input | Extensions |
|---|---|
| Plain text files | .txt |
| Direct text input | Type or paste into the editor |
.txt files. If typing, enter your text directly in the textarea.text_to_pdf.pdf.When uploading multiple files, their contents are concatenated with blank lines between them.
| Option | Values | Default |
|---|---|---|
| Font Family | Helvetica (sans-serif), Tiro (serif), Courier (monospace), Times (serif) | Helvetica |
| Font Size | 6 -- 72 pt | 12 |
| Text Color | Any color via color picker | Black (#000000) |
| Page Size | ISO A0--A10, B0--B10, C0--C10, US Letter, Legal, Tabloid, Ledger, 11x17 | A4 |
RTL languages (Arabic, Hebrew, Persian, Urdu) are automatically detected. When RTL text is found, the text direction and alignment switch accordingly.