Easy PDF Viewing in Flow

Here’s a simple component that takes the id of a Content Document and, if it’s a PDF, renders it in a flow screen:

I’ve taken the great work by Anny He and simply wrapped it into a Flow Screen Component.

In my example (see video), I first query for all the Content Documents in my org and then use Datatable to enable the user to select 1 for viewing.

Install

Version 1.0.1 Unmanaged 1/21/21 Comes WITH DEMO FLOW, but the demo requires datatable, which in turn requires two base packs.

Source

View source