Generate PDF based on Particular Div id in Rails -


is there way generate pdf in rails based on div id.

sample code: <div id="pdf_download">    <h1>hello welcome pdf </div>  <div id="seconf_pdf">  <h2>second pdf</h2> </div> 

now want download div id "pdf_download" pdf, possible? can explain how achieve it?

there seems gem - wicked_pdf. internally seems depend on wkhtmltopdf, should able install on production environment.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -