---
title: "Example - adding the Generate PDF operation"
slug: "example---adding-the-generate-pdf-operation"
abstract: "Example of how to add the Generate PDF operation."
---
# Example - adding the Generate PDF operation

> [!note]
> To configure Content Hub, you must either be a superuser or have the necessary permissions granted to you through [user group policies](https://doc.sitecore.com/ch/en/users/content-hub/user-group-policies.html "User group policies").

After creating the [*Print template* entity](https://doc.sitecore.com/ch/en/users/content-hub/create-a-print-template.html "Create a print template") and the [*Print entity generation* action](https://doc.sitecore.com/ch/en/users/content-hub/create-a-print-entity-generation-action.html "Create a print entity generation action"), you add the [**Generate PDF** operation](https://doc.sitecore.com/ch/en/users/content-hub/add-the-generate-pdf-operation.html "Add the Generate PDF operation").

In this example, you add the operation to the **Entity operations** component of the **Content detail** page:

1. On the menu bar, click **Manage** :mdiCogOutline:.
2. On the **Manage** page, click **Pages**.
3. On the **Content detail** page, in the **Entity operations** component, ensure custom settings are enabled by clicking :mdiAccountOutline:.
4. On the **EntityOperations component** page, click **Add operation** and select *Generate PDF*.
5. In the *Generate PDF* section, next to **Action**, click :mdiPlus: **Add** and add the *CMPRecipePrint* action created in the previous section.
6. Turn on the **Disable button after click** switch.
7. For the downloads to be of higher quality, turn on the **High-resolution** switch.
8. Click **Save**.

For the high-resolution download to work, the **asset.json** file in the print template package should also include:

```json
"highRes": {
        "property": "Renditions",
        "rendition": "thumbnail"
        }

```