You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use the viewer inside an iframe and I'm just getting a white box. Could you provide a working example of an iframe using the helper method provided?
My iframe: <iframe srcdoc="<%= pdfjs_viewer(pdf_url: pdf, style: :minimal) %>"></iframe>
I've also tried escaping the quotes, which loads the html, but the javascript and css don't load: <iframe srcdoc="<%= pdfjs_viewer(pdf_url: pdf, style: :minimal).gsub('"', '"') %>"></iframe>
Thanks for any help!
The text was updated successfully, but these errors were encountered:
Unfortunately I no longer work at the place I was doing this for and I don't remember what we did, but it looks like we forked the repo and made a few changes:
Hello,
I'm trying to use the viewer inside an iframe and I'm just getting a white box. Could you provide a working example of an iframe using the helper method provided?
My iframe:
<iframe srcdoc="<%= pdfjs_viewer(pdf_url: pdf, style: :minimal) %>"></iframe>
I've also tried escaping the quotes, which loads the html, but the javascript and css don't load:
<iframe srcdoc="<%= pdfjs_viewer(pdf_url: pdf, style: :minimal).gsub('"', '"') %>"></iframe>
Thanks for any help!
The text was updated successfully, but these errors were encountered: