How to show PDF content in detail page view?

Hi, I am trying to show PDF content as preview OR download link on detail view page.
For now It only shows path to a file or blank rectangle
2021-11-24 10_48_37-Podatek Details i jeszcze 2 strony — Osobisty — Microsoft​ Edge

How to get preview of PDF or at least a downloadable link ?


<iframe src="https://docs.google.com/gview?url=<?php echo **here_goes_your_ur**l ;?>&embedded=true" height="**<?php echo doc_height; ?>**" width="100%" frameborder="0" style="border:1px solid #ddd;"></iframe>

there you go have fun! will only work in phprad classic if using in vue replace the code with this


//
<iframe src=`https://docs.google.com/gview?url=${item.fieldname}&embedded=true` height=`${item.height_field}` width="100%" frameborder="0" style="border:1px solid #ddd;"></iframe>