# SharinPix Rich Text To PDF

{% hint style="warning" %}
This component is only available in the Enterprise license plan of SharinPix. For more info, please contact <support@sharinpix.com>
{% endhint %}

{% hint style="info" %}
The **SharinPix Rich Text To PDF** component permits the conversion of images found inside a **Rich Text** field into a PDF.

This is a great way for you to generate report and send them as attachment in email. In addition, the PDF generated will be saved on the record as Content Document.
{% endhint %}

<figure><img src="/files/wco5WbytU3tpPIYP7P0W" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Information:**

This feature is only available on Lightning. It can be used on:

* Page Builder
* Desktop
* Mobile
* In your own Lightning Component development
  {% endhint %}

## Getting Started

{% hint style="warning" %}
**Note:**

In order to use the SharinPix Rich Text To PDF component you should ensure that:

* Your record page should have **at least one** field of type **Text Area (Rich)**.
* The permission set **SharinPix Lightning Components** is assigned to all users attempting to use the SharinPix Rich Text To PDF component.
  {% endhint %}

To use the SharinPix Rich Text To PDF component, you simply need to drag and drop the component from the Lightning App Builder onto your page layout.

<figure><img src="/files/TinioyfHGE1jh4sdb5OE" alt=""><figcaption></figcaption></figure>

## Lightning Component Parameters

<figure><img src="/files/8XADlh0wHNXw0xrzQGwD" alt=""><figcaption></figcaption></figure>

* **Generate PDF Button Label:** Used to specify the button's label.
* **Rich Text field:** Used to specify the API name of the Rich Text field whose content will be converted to PDF.

## Demo

The example below shows a Rich Text field containing images:

![](/files/5LiOU26elcXaiTROgtnd)

To generate the PDF click on the SharinPix Rich Text To PDF component's button. The picture below depicts a preview of the PDF generated:

![](/files/0oqvAwUhwjZzUPxnC6dd)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sharinpix.com/documentation/lightning-web-component/sharinpix-rich-text-to-pdf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
