Browse Source
Properly compute the size of the PDF based on DPI and PDF-specific resolution (i.e. 72dpi). Closes #62dev
5 changed files with 15 additions and 1 deletions
@ -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 |
||||
Loading…
Reference in new issue