Add zoom and dpi values to correct the pdf display when environment is not development.

This commit is contained in:
taitus
2019-01-13 15:50:43 +01:00
parent 70171b0e17
commit a6d822cc7a

View File

@@ -7,6 +7,8 @@ class Dashboard::PosterController < Dashboard::BaseController
format.pdf do
render pdf: 'poster',
page_size: 'A4',
dpi: 300,
zoom: 0.32,
show_as_html: Rails.env.test? || params.key?('debug'),
margin: { top: 0 }
end