# Text to PDF

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

- Category: Web (web)
- URL: https://ilham.dev/tools/text-to-pdf/
- Documentation: https://ilham.dev/tools/text-to-pdf/index.md
- Keywords: pdf, text, write, convert, document, page size, print, wrap, generator

## Example questions

- Which characters can be drawn?
- How does the wrapping work?
- Can I use my own font?

## Properties

- Runs in the browser
- No login required
- No data uploaded


## About

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.


## 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.

