---
title: RICH_TEXT
description: Handle SFDC rich text fields. These fields are HTML snippets that can be compiled into the document. This video will show how to add them to a document and how to more specifically define which styles and classes (remember it…
url: "https://pdfbutler.com/academy/pdf-butler-academy/pdf-butler-by-configtype/rich_text/"
updated: "2025-09-03"
category: PDF BUTLER BY CONFIGTYPE
---

# RICH_TEXT

Handle SFDC rich text fields. These fields are HTML snippets that can be compiled into the document.
 This video will show how to add them to a document and how to more specifically define which styles and classes (remember it is HTML) you want to keep.

[Academy Rich Text Fields](https://www.youtube.com/embed/Ijx6cdNPA_E?si=7mZvFGQ-dw2Chgbf)

**Example:**

I have a Rich Text Area field in opportunity and will be using this field in this example.

This is the sample [template](https://pdfbutler.com/wp-content/uploads/2023/08/RICH_TEXT-Sample-Template.docx) to use in Doc Config.

1. Create SOQL Data Source to fetch Rich text area field on opportunity
2. Create Doc Config and Open PDF Butler. Upload the above sample document
3. Add the Data Source to the Doc Config
4. Create config types as shown below for all the merge fields in the sample template.
    **RichText3** Merge field - For this merge field, I have added fixed style font-family:Arial as shown below. In the document you will see that this font family will be added to the rich text area text.
    ![RICH_TEXT Pic1](https://pdfbutler.com/wp-content/uploads/2023/08/RICH_TEXT-Pic1.png)
    **RichText** Merge field - For this merge field, no settings were applied. It means that the text in rich text area field will be show as is in the document.
    ![RICH_TEXT Pic2](https://pdfbutler.com/wp-content/uploads/2023/08/RICH_TEXT-Pic2.png)
    **RichText1** Merge field - For this merge field, Ignore all styles and classes were applied.  ![RICH_TEXT Pic3](https://pdfbutler.com/wp-content/uploads/2023/08/RICH_TEXT-Pic3.png)
    **RichText2** Merge field - For this merge field, only color style is filtered out. So, wherever color styling is there in the rich text area field text, that will be removed in the document.  ![RICH_TEXT Pic4](https://pdfbutler.com/wp-content/uploads/2023/08/RICH_TEXT-Pic4.png)
5. Edit the opportunity record and drag convert component. Add Doc Config id to the component and save the page.
6. Generate the document.

** **
