Sha256: 8e8cfcb44cbea14420ca1d96cc8bb535761b89dea5cbb87498665c09c70065a2

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

#!/usr/bin/env ruby

$LOAD_PATH.push File.expand_path(File.join(__FILE__, '../..'))

require 'tilt-pdf'
require 'slim'

rpdf = ARGV.shift or fail('usage: rpdf filename')
pdf = Tilt.new(rpdf).render
File.open(File.basename(rpdf, '.rpdf') + '.pdf', 'wb') do |f|
  f.write(pdf)
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
tilt-pdf-rails-0.10.0 bin/rpdf
tilt-pdf-0.10.0 bin/rpdf
tilt-pdf-0.9.0 bin/rpdf