Sha256: 264e4a7873b642bbb6cd97f04943ea044a54f1195999a7724131613bea9f3644
Contents?: true
Size: 312 Bytes
Versions: 20
Compression:
Stored size: 312 Bytes
Contents
# encoding: utf-8 # # Demonstrates how to use open-uri and Document#image to embed remote image # files. # require "#{File.dirname(__FILE__)}/../example_helper.rb" require "open-uri" Prawn::Document.generate("remote_images.pdf") do image open("http://prawn.majesticseacreature.com/media/prawn_logo.png") end
Version data entries
20 entries across 20 versions & 6 rubygems