Configure PDF/Image Selector Tool (LWC)

Published on October 20, 2026 Lightning PDF Generator



Configure and Use the PDF/Image Selector Tool

Overview: The PDF/Image Selector Tool (LWC) adds a button to any Salesforce record page. Users pick the components they want and download a clean snapshot as a PDF or an image, with no Visualforce pages or document templates needed.

Who Is This For?

Three groups get the most value from this tool.

1. Salesforce Administrators and Consultants

Common searches: "How to print record page to PDF in Lightning", "Export component layout to PDF Salesforce LWC", "Generate PDF without complex template mapping".

Why it helps: Business stakeholders often ask for a clean, exact snapshot of what they see on screen, including related lists and component blocks. This tool lets admins deliver it without spending hours on rigid Visualforce pages or heavy third-party document apps with complex XML mapping templates.

2. Operations and Client Success Teams

Common searches: "Export account history summary PDF", "Save case history and comments to PDF".

Why it helps: Teams managing client relationships need instant summaries of accounts, support logs, or project notes to attach to emails or archive in external folders for compliance. The tool avoids the browser's native Print to PDF, which captures navigation bars, sidebars, and other UI clutter.

3. Field Service and Compliance Personnel

Common searches: "Offline record export Salesforce", "Audit-ready record layout download".

Why it helps: Field agents and auditors need a fast way to package record states into tidy, page-broken files straight from the record detail page, before going offline or handing records to external parties.

Part 1: Configure the Tool

Step 1: Open App Builder for the record page of any object.

Step 2: Drag and drop PDF/Image Selector Tool (LWC) from the managed components list.

Step 3: Place it on the page. Recommended: as the last component on the page.

Adding the PDF/Image Selector Tool to the record page in App Builder.

Adding the PDF/Image Selector Tool to the record page in App Builder.

Step 4: Configure the component properties:

  1. Button Label: the label shown on the button.
  2. File Name: the name of the PDF/Image. Use merge field context as with other components.
  3. Separate Each Component: check this to load each selected component on its own PDF page/image.
  4. Download As Image Instead of PDF: check this to download an image instead.

PDF/Image Selector Tool properties in App Builder.

PDF/Image Selector Tool properties in App Builder.

Step 5: Save and activate the record page. The button now appears as shown below.

The PDF/Image Selector Tool button on the record page after saving.

The PDF/Image Selector Tool button on the record page after saving.

Part 2: Download a PDF

Step 1: Click the PDF/Image Selector Tool button. Each component on the record page is listed for selection.

Step 2: Select components one by one, or click Select All in the action utility bar.

Component selection with 2 components selected.

Component selection with 2 components selected.

All components of the page selected for download.

All components of the page selected for download.

Step 3: Download the PDF. Sample output with all components:

Sample PDF with all components downloaded.

Sample PDF with all components downloaded.

Downloading a Single Component

Select just one component to download only that section.

Selecting a single component to download.

Selecting a single component to download.

Sample output:

Sample PDF output for a single component.

Sample PDF output for a single component.

Tip: Enable Separate Each Component so each selected component starts on a new PDF page.

Part 3: Download as an Image

Prefer an image over a PDF? In App Builder, check the property Download As Image Instead of PDF on the PDF/Image Selector Tool component.

Enabling Download As Image Instead of PDF in App Builder.

Enabling Download As Image Instead of PDF in App Builder.

Click the button and you will see a Download Image button instead of Download PDF. Make your selections and click Download Image.

The Download Image button after selecting components.

The Download Image button after selecting components.

Sample of the image downloaded as per your selection:

Sample image downloaded as per selection.

Sample image downloaded as per selection.


Knowledge Article Number: KA-00479

View more articles in the knowledge base