Displaying an embedded pdf in a view

By: JK Tor | Asked: 07/13/2024
ForumsCategory: General questionsDisplaying an embedded pdf in a view
JK Tor asked 2 months ago

Hello: In our use case, we collect a pdf as an upload (only pdf are permitted) on a form. We use the information in the form in a view, and would like to have the embedded pdf displayed. Is there a way to do this natively in Formadible or with another plugin? The embedded pdf viewers I have tried cannot display a pdf associated with a record, only a direct link. Any help on this would be much appreciated!

1 Answers
Best Answer
Rob LeVineRob LeVine answered 2 months ago
I installed PDF Embbeder and it works as expected in a view. I just passed the shortcode of the field id to the PDF Embedder shortcode.
JK Tor replied 2 months ago

Hi Rob,

Thanks so much for the response. I tried the following shortcodes in my views without success:

[pdf-embedder id=[id]]
[pdf-embedder id=id]

I also tried including the id in the hyperlink to the page (i.e., .../detail-page/?id=36087) and using the short code in directly in the page block using

[pdf-embedder id=id]

This didn't work either. I'm new to WordPress and really appreciate your help!!

Rob LeVineRob LeVine replied 2 months ago

https://wp-pdf.com/free-instructions/?utm_source=wprepo&utm_medium=link&utm_campaign=liteplugin

[pdf-embedder url="[your formidable forms field id that contains the url of the PDF"]]

e.g., [pdf-embedder url="[434]"]

JK Tor replied 2 months ago

Amazing! I got it working 🙂 Thanks again so much for your help Rob, especially on a weekend. You really helped me out.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right