I want to create PDF file using IO.popen command with wkhtmltopdf. I successfully create pdf file using wkhtmltopdf command using below code:
IO.popen('wkhtmltopdf '+ source_url.to_s + ' ' + Rails.root.to_s + '/app/assets/pdfs/' + file_to_download) do
end
But i want to create PDF with header and footer using same code. I am not finding this solutions please send me if any one have.
There is option –header-html & –footer-html to provide html header externally with your command
1) html file
2) You can also pass text into footer & header as below
There are so many other options to use see this link