Closed topnessman closed 2 years ago
Hi, I'm not sure if this is what are you looking for, but you may try to use the following code on your page:
<iframe src="<%= pdfjs.full_path(file: "/here/is/you/pdf/url.pdf") %>" style="width: 100%; height: 100%">
</iframe>
I reckon that resolved it.
Recommend Close.
Can you please give a full example of the syntax to integrate with irame?
<%=pdfjs_viewer pdf_url: "/sample.pdf", style: :full %>
is too simple for me.