# Text to PDF Guide

Write plain text out as a PDF, with wrapping, page size, margins and page numbers.

- Tool: https://ilham.dev/tools/text-to-pdf/
- Guide URL: https://ilham.dev/guides/text-to-pdf/
- Tool guides index: https://ilham.dev/guides/tools/
- Broader guide: Working With PDFs (https://ilham.dev/guides/working-with-pdfs/)

## What it does

Turn a note, a receipt or a block of plain text into a PDF. The text is wrapped to the page width and carried onto a new page when the space runs out, with a choice of page size, font, size, margin and line spacing.

## Use the tool

Open https://ilham.dev/tools/text-to-pdf/, add the input the tool asks for, run it, and check the output before using it elsewhere.

## Input and output

- Input: text.
- Output: text.
- Category: Web.

## Privacy and processing
Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

## Questions

### Which characters can be drawn?

The standard PDF fonts cover Latin-1, which is enough for English and Indonesian and most Western European text. Characters outside that range, such as emoji or Cyrillic, cannot be drawn and are left out, and the count is reported.

### How does the wrapping work?

Each word is measured with the chosen font and size, and a line breaks when the next word would cross the margin. That keeps the layout correct even in a proportionally spaced font like Helvetica or Times.

### Can I use my own font?

Not in this version. Embedding a font means shipping the font file, which would add weight to the page. The three standard fonts are always available and need nothing extra.