Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.35 kb
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib')
require 'prawn'
image_file = File.expand_path('../../data/images/prawn.png', __FILE__)
pdf = Prawn::Document.new
pdf.image image_file
pdf.render_file("works.pdf")
require 'mathn' # Re-defines '/' operation !
pdf = Prawn::Document.new
pdf.image image_file
pdf.render_file("broken.pdf")
Jump to Line
Something went wrong with that request. Please try again.