pythonware.com

Home / PDF tools / text to PDF

Assembly

Text to PDF

For when something needs to be a PDF and opening a word processor to do it feels absurd. Paste, choose a page size, download.

Result

Plain text, properly set

Lines are wrapped to the measure rather than being cut off at the page edge, which is the thing most quick converters get wrong. Your own line breaks are respected, so paragraphs and blank lines survive, and pages break when the text runs past the bottom margin.

The three fonts offered are among the fourteen every PDF reader is required to support, so nothing has to be embedded. That keeps the file tiny, often a few kilobytes for several pages, and means it renders identically everywhere.

One limitation worth knowing: those built-in fonts cover Latin characters and little else. Text in Greek, Cyrillic, Arabic, Hebrew or any CJK script will not render, because the glyphs simply are not in the font. That needs an embedded font, which is a different and much heavier job.

Common questions

Can I use bold or headings?

No. This is plain text set cleanly. For anything with structure, write it in a word processor and export, or use markdown and a proper converter.

Will my tabs and indentation survive?

Leading spaces do. For code and anything aligned in columns, pick Courier, where every character has the same width.

How do I add page numbers?

Make the PDF here, then run it through add page numbers.

Other PDF tools