wicked_pdf table without border or border

Asked

Viewed 17 times

0

In the development environment I use Windows. soon make the call in config/initializers/wicked_pdf.rb directly in . exe file

thus

WickedPdf.config = {
  exe_path: 'C:/wkhtmltopdf/bin/wkhtmltopdf.exe'
}

But for production use ubunto. and then use the Gem "wkhtmltopdf-Binary" and modify the call in wiked_pdf.Rb to reference, as follows:

WickedPdf.config = {
  exe_path: Gem.bin_path('wkhtmltopdf-binary', 'wkhtmltopdf')
}

However, when I use windows, with exe. it mounts the pdf file with the organized tables. already when I change to call in ubunto with Gem wkhtmltopdf . he gives the problem of not recognizing the edges of the tables for some reason, I have made several different attempts, but I do not succeed

1 answer

0


This Gem you are using contains the old version of wkhtmltopdf.

Have you tried using this Gem? wkhtmltopdf-Binary-edge https://github.com/pallymore/wkhtmltopdf-binary-edge

Dai: Wickedpdf.config = { exe_path: Gem.bin_path('wkhtmltopdf-Binary-edge', 'wkhtmltopdf') }

  • This also helped me, however the problem with the old model, for me, worked by inserting >> Gem 'bootstrap-Sass' << in the gemfile! solved as well. But thank you very much for the help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.