Select to view content in your preferred language

Dynamically showing a PDF file in Embed widget

374
1
07-27-2023 05:39 AM
Labels (1)
ChristopherKreuter
New Contributor II

Hi,

I am trying to dynamically show a PDF via the embed widget. I am using a List to select the item then i would like to show the associated PDF.

Does anyone have any ideas into this?

Thank you. 

0 Kudos
1 Reply
TonghuiMing
Esri Regular Contributor

If your PDFs are stored as URL values for a field in the data source the List widget uses, you can set a dynamic URL in the Embed widget to achieve that.

 

However, there is a browser security limitation on displaying the PDF directly in iframe (Embed widget):

https://doc.arcgis.com/en/experience-builder/latest/configure-widgets/embed-widget.htm

TonghuiMing_0-1691054294656.png

In these cases, try using a browser extension might work, like PDF viewer from Chrome.

0 Kudos