Unit conversion on save_pdf, and arbitrary paper sizes

Closes #21 and #20
This commit is contained in:
Andy Meneely
2015-02-02 00:20:25 -05:00
parent d848178bfe
commit 086fd5fad9
7 changed files with 40 additions and 14 deletions
+5
View File
@@ -11,6 +11,11 @@ Squib::Deck.new(width: 825, height: 1125, cards: 16) do
# Place on multiple pages over the PDF, with bleed beeing trimmed off
save_pdf file: 'save-pdf.pdf', margin: 75, gap: 5, trim: 37
# PDFs also support arbitrary paper sizes, in pixels or any other supported units
save_pdf file: 'save-pdf-small.pdf',
width: '7in', height: '5in',
range: 0..1
# Note that our PNGs still are not trimmed even though the pdf ones were
save_png range: 1, prefix: 'saves_notrim_'