I'm currently working on displaying a PDF file within a Bootstrap modal using the "object" HTML tag. However, I am facing an issue where the PDF file is not showing up.
To demonstrate this problem, I have created a jsFiddle (http://jsfiddle.net/mV6jJ/3/) where you can see the basic modal code from Bootstrap along with the object tag for the PDF file in the modal-body.
<object type="application/pdf" data="http://www.inkwelleditorial.com/pdfSample.pdf" width="500" height="500>this is not working as expected</object>
When I use this code outside of the Bootstrap modal, it works perfectly fine and displays the PDF in the browser's default viewer. However, when I try to incorporate it into the modal, nothing shows up.
If you have any insights or suggestions on how to resolve this issue, I would greatly appreciate it. I've spent hours searching for a solution and so far have only come across solutions involving the embed tag, which I prefer not to use.
Thank you for your help and best regards