How to show PDF file Inline using PDFKit in Rails3
-
28-06-2021 - |
Question
I want to know about PDFKit code to show the pdf inline of any html page
I want the code using
send_data()
or send_file()
or render.pdf {}
something like this
I am able to create the pdf file Using pdfkit but dont't know how to render it inline
Solution
Do you have a plugin in your browser that supports inline pdf rendering? I have disabled mine because I always want a download instead of inline :)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow