Sha256: f02b05ad6c779ffc025926bd23e46ed7577ecba89d126241e407758605460b0c
Contents?: true
Size: 1.17 KB
Versions: 6
Compression:
Stored size: 1.17 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: 3.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
6 entries across 6 versions & 1 rubygems