---
title: Call PDF Butler from APEX
description: "Automation sounds great but you are taking it to the next level... APEX! [Download documentation here](https://assets.pdfbutler.com/website/academy.folders/Call%20PDF%20Butler%20From%20APEX.pdf) [APEX API documentation here](https://eu1.pdfbutler.com/files/api/cadmuscore/ConvertController.html#ConvertController.convertWithWrapper) LWC code example: This example shows how to call PDF Butler from a button in an LWC component and download…"
url: "https://pdfbutler.com/academy/pdf-butler-academy/pdf-butler-salesforce-automation/call-pdf-butler-from-apex/"
updated: "2023-10-27"
category: PDF BUTLER SALESFORCE AUTOMATION
---

# Call PDF Butler from APEX

Automation sounds great but you are taking it to the next level... APEX!

[Download documentation here](https://assets.pdfbutler.com/website/academy.folders/Call%20PDF%20Butler%20From%20APEX.pdf)

[APEX API documentation here](https://eu1.pdfbutler.com/files/api/cadmuscore/ConvertController.html#ConvertController.convertWithWrapper)

LWC code example:
 This example shows how to call PDF Butler from a button in an LWC component and download the generated document.

[APEX class that calls PDF Butler](https://assets.pdfbutler.com/website/academy.folders/SimpleConvertController%20(2).cls)

[LWC example (zip)](https://assets.pdfbutler.com/website/academy.folders/generateDocument%20(2).zip)
