I'm trying to add a footer to PDF, I'm getting an error whenever try to add :footer_html method but I can generate PDF without using it. Error on console is,
Error: Failed loading page http:/home/rmed179lt/workspace/ror/RevAudit/views/mlap_reports/footer.html?page=1§ion=&subsection=&frompage=1&subsubsection=&topage=1&webpage=foobar&time=8:50 PM&date=15/02/16 (sometimes it will work just to ignore this error with --ignore-load-errors) QPaintDevice: Cannot destroy paint device that is being painted
kit = PDFKit.new(html, page_size: 'Letter', :footer_html => "/mlap_reports/footer.html")
Also I tried,
kit = PDFKit.new(html, page_size: 'Letter', :footer_html => "/mlap_reports/footer.html")
My footer is located in views/mlap_reports/footer.html. Any Idea how to resolve this ? I tried adding styling to a div and place it as footer but it's not working either.
Aucun commentaire:
Enregistrer un commentaire