Skip to content

Commit f48d3df

Browse files
committed
Adjust PDF scaling options to match wicked_pdf configuration
1 parent 42876cd commit f48d3df

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

config/initializers/ferrum_pdf.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
config.window_size = [1280, 800]
66

77
config.pdf_options.format = Rails.env.test? ? :A3 : :A4
8+
config.pdf_options.scale = 0.85 # Scale down the content to fit better on the page, matching the wicked_pdf scale
89
config.pdf_options.print_background = true
910

1011
next unless ENV["CI"] || ENV["DOCKER"]

0 commit comments

Comments
 (0)