---
title: "rich-text-simplified"
description: "an edit changed a text box whose rich text had styles Lamina PDF doesn't keep, such as a size or colour per word, so the box now has one size and colour"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/codes/rich-text-simplified/"
---

# rich-text-simplified

an edit changed a text box whose rich text had styles Lamina PDF doesn't keep, such as a size or colour per word, so the box now has one size and colour

- Type: warning
- Kind: `usage` (the caller misused the API)

## What happened

An edit changed a text box made by another app, and its rich text held styles Lamina PDF doesn't keep, such as a size or colour for a single word. The box now uses one font, size and colour for all of its text, with bold and italic kept.

## Why

A text box keeps its styled text as XHTML in its `/RC` key. Lamina PDF keeps a small part of it: paragraphs, and bold and italic words, with one font, size, colour and alignment for the box. Supporting all of XHTML and CSS would need a browser's layout engine. Lamina PDF reads the wider styles so a box keeps its look until you edit it, then draws it again in the subset.

## How to fix

Check how the edited box looks. To give a word its own size or colour, use a second text box. The warning never blocks the edit or the save.

## Example

Changing the text or colour of an Acrobat box whose `/RC` colours one word red.

## Data fields

- `annotations`: the IDs of the text boxes the edit simplified.
