Skip to content

Instantly share code, notes, and snippets.

@jabbrwcky
Created June 21, 2013 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jabbrwcky/5830562 to your computer and use it in GitHub Desktop.
Save jabbrwcky/5830562 to your computer and use it in GitHub Desktop.
class PropertyPdf < Prawn::Document
def initialize(property)
super(top_margin: 70)
@property = property
@qrcode_content = 'http://tbd.com'
qrcode = RQRCode::QRCode.new('http://tbd.com', :size => 6, :level => :h )
building_heading
end
def qrcode
print_qr_code(@qrcode_content, :dot=>2.8)
render_file("qr3.pdf")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment