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:
Andy Meneely
2015-04-13 22:59:34 -04:00
parent a47e26535d
commit 4a0c5e78b6
5 changed files with 15 additions and 1 deletions
+8
View File
@@ -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