How to download PDF from a given resource?

I have this simple module that currently has a table which is populated by some data source. One of the properties of the returned data are S3 urls which are PDFs. I currently have a click event tied to the specific cell that holds the url but can't figure out how to download the s3 file as a PDF. Any suggestions?

Hii @dylan-jaris ,
This Documentation helps you to download S3 files as a PDF.

You can also check this post. It shows How to download multiple files from S3 and download as a zip file

Not quite. The data source is our own internal API where the response includes an s3 url as part of the response object. We aren't connecting directly into s3 for this particular app.

You can use utils.downloadFile