samples/saves.rb in squib-0.2.0 vs samples/saves.rb in squib-0.3.0
- old
+ new
@@ -9,9 +9,14 @@
text str: (1..16).to_a, x: 220, y: 78, font: 'Arial 54'
# 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_'
# We can also save our PNGs into a single sheet,
# rows are calculated based on cols and number of cards