---
title: PDF Butler Lightning Web Component (LWC) example with previewer and download
description: "This shows how to create an LWC that generates a PDF and shows a preview. From the previewer, you can download and call a Pack. [Code example](https://eu1.pdfbutler.com/lwc_previewer_example.html) [PDF Butler - Custom Aura Component with Previewer download and pack](https://www.youtube.com/embed/qaOCBXtB684?si=MjQjSoTfUx91CgoT) previewer overview…"
url: "https://pdfbutler.com/academy/pdf-butler-academy/pdf-butler-salesforce-automation/pdf-butler-lightning-web-component-lwc-example-with-previewer-and-download/"
updated: "2024-08-16"
category: PDF BUTLER SALESFORCE AUTOMATION
---

# PDF Butler Lightning Web Component (LWC) example with previewer and download

This shows how to create an LWC that generates a PDF and shows a preview. From the previewer, you can download and call a Pack.

[Code example](https://eu1.pdfbutler.com/lwc_previewer_example.html)

[PDF Butler - Custom Aura Component with Previewer download and pack](https://www.youtube.com/embed/qaOCBXtB684?si=MjQjSoTfUx91CgoT)

previewer overview (Aura movie but it is quite the same for LWC)
