Skip to content
Novus Examples
rtf754 B

RTF — Formatted Document

A Rich Text Format document exercising bold, italic, underline, colour, headings, and a bullet list — all as plain control words. For testing RTF parsers, text extraction, and RTF→DOCX/PDF conversion.

Rendered preview of RTF — Formatted Document

Rendered preview of the rtf file (754 B). Download above for the original.

Specifications

Format
RTF 1.x
Encoding
ASCII
Features
bold, italic, underline, colour, bullet list
Fonts
Times New Roman, Arial

What is a .rtf file?

RTF (Rich Text Format) is a plain-text-based document format that encodes styling, fonts, and layout using backslash control words. It is human-readable in a text editor and broadly interoperable across word processors. It predates Office Open XML and remains a portable rich-text interchange format.

How to use this file

Use an example RTF to test rich-text parsing, control-word handling, and converters that translate between RTF and DOCX, HTML, or plain text.

How to use this file for testing

“RTF — Formatted Document” is a deterministic Novus Examples fixture for Conversion testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: ASCII · RTF 1.x. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Document fixtures list their internal structure (pages, fields, tracked changes, embedded objects) in the spec table. Test extractors, converters, and OCR against that known structure, and compare searchable↔scanned or format-twin companions when present.

Code examples

soffice --headless --convert-to txt formatted.rtf   # LibreOffice
textutil -convert txt formatted.rtf                 # macOS

Generated by generation/docs_rtf.py. Free for any use, no attribution required — license.