Sha256: 23679354a862a8e30dec6ea968a6c417171ac287ae54e2a0c8f5d8a1c7823cb5
Contents?: true
Size: 343 Bytes
Versions: 5
Compression:
Stored size: 343 Bytes
Contents
# encoding: utf-8 # # Demonstrates how to use open-uri and Document#image to embed remote image # files. # $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', '..', 'lib')) require "prawn" require "open-uri" Prawn::Document.generate("remote_images.pdf") do image open("http://prawn.majesticseacreature.com/media/prawn_logo.png") end
Version data entries
5 entries across 5 versions & 2 rubygems