document-from-text.pdf.Output is A4 with 11pt Helvetica and comfortable margins. Long lines wrap at the measured page width — no manual line breaks needed — blank lines open paragraph gaps, and content that runs past the bottom flows onto additional pages until it is finished. The result prints and reads like a normal document, which is the point: this is the fastest route from a block of text to something you can attach to an application or hand in. The conversion runs entirely in your browser with pdf-lib; nothing is uploaded anywhere. Wrapping is measured against the real font metrics rather than a character count, so a long unbroken token such as a URL is broken mid-word instead of pushing past the margin.
There is no Markdown or rich-text styling here; if you need headings and bold, build the page as HTML and print it with HTML to PDF instead. Character coverage follows the PDF’s built-in Latin font: letters, digits, common punctuation and typographic quotes are safe, while emoji and non-Latin scripts (CJK, Devanagari, and so on) are replaced with a “?” so the download never crashes. For documents that must keep those scripts, route the text through a browser-rendered page instead of this generator.
Also useful: HTML to PDF, Word Counter, and Text to Handwriting.