Sha256: d61db2f92d43ff10303a9b01b3f716cf373c111a7e19e8e437769c8f20a893dd
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require 'squib' Squib::Deck.new(cards: 8) do background color: :gray rect x: 37.5, y: 37.5, width: 750, height: 1050, x_radius: 37.5, y_radius: 37.5, stroke_width: 2.0, dash: '4 4' # Tests for crop marks save_pdf file: 'crops-default.pdf', crop_marks: true save_pdf file: 'crops-gapped.pdf', crop_marks: true, trim: 37.5, gap: 20 # Test crop marks with all the bells and whistles rect x: '0.3in', y: '0.4in', width: '2in', height: '2.5in' save_pdf file: 'crops-custom.pdf', crop_marks: true, trim: 0, gap: 20, crop_stroke_dash: '5 5', crop_stroke_color: :red, crop_stroke_width: 4.0, crop_margin_left: '0.3in', crop_margin_right: '0.45in', crop_margin_top: '0.4in', crop_margin_bottom: '0.85in' # Full crop marks save_pdf file: 'crops-full.pdf', crop_marks: :full, trim: 0, gap: 20, crop_stroke_dash: '5 5', crop_stroke_color: :red, crop_stroke_width: 4.0, crop_margin_left: '0.3in', crop_margin_right: '0.45in', crop_margin_top: '0.4in', crop_margin_bottom: '0.85in' # Right to left printing for duplex save_pdf file: 'save_pdf-crops-rtl.pdf', crop_marks: true, rtl: true end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.19.0 | samples/saves/_save_pdf.rb |
squib-0.19.0b | samples/saves/_save_pdf.rb |
squib-0.19.0a | samples/saves/_save_pdf.rb |