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
Post a Comment