ruby on rails - Wicked PDF RuntimeError -
I have installed malicious PDF rail 4, and now I have this problem:
runtime error clients controller # show [show]
error: failed to execute: [ "C: / Program Files / wkhtmltopdf / bin / wkhtmltopdf.exe", "--footer-center", "Center", "footer-left", "left", "-pakr-right", "right", "file: // C: / users / Rasheed / Aepdata / local / theme / Viwadit_peedif20l4l0l7-9664-l8 xoryq. Html "," c: / user / rashid / appadata / local / theme / disputed_pdf _Janetted_file20141017-9664-zo89le.pdf "] Error: PDF could not be generated! Command Error: Page Loading (1/6) [>] 0% [======>] 10% Error: Failed to load page file: // c / Users / Rashid / AppData / Local / Temp / wicked_pdf20141017-9664 -18xoryq.html (sometimes to ignore the error with error - will work to avoid load-error-management) network error Exit reason code 1: ContentNotFoundError
def Show Response_to do | Format | Format.html format.pdf do @example_text = "Some Text" Render: pdf = & gt; "File_name" ,: Template = & gt; 'Client / show.pdf.erb', #: layout = & gt; 'PDF' ,: Footnote = & gt; {: Center = & gt; "Center",: left => "Left" ,: right => "Right"} End End
I am getting the same error below given guidelines for
that I switched changing gemfile entry to determine tempory gem:
gem 'Dusht_peedif, Gitub' Mileage / malicious' I believe that it is to do with file instead of file: // instead of file: ///
Comments
Post a Comment