Fix PDF scaling issue
Properly compute the size of the PDF based on DPI and PDF-specific resolution (i.e. 72dpi). Closes #62
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
require 'squib'
|
||||
puts "Using Squib #{Squib::VERSION}"
|
||||
|
||||
Squib::Deck.new(cards: 3, dpi: 600) do
|
||||
background color: :gray
|
||||
text str: %w(Hello fine world!)
|
||||
save_pdf file: 'foo.pdf', gap: 5, width: '11in', height: '8.5in'
|
||||
end
|
||||
Reference in New Issue
Block a user