Sha256: f606742fe143973add1664798db26f06508a9ea81ecb7de84da34f5cdecb0e8f
Contents?: true
Size: 507 Bytes
Versions: 12
Compression:
Stored size: 507 Bytes
Contents
require File.dirname(__FILE__) + "/../../node/base" require "PDFlib" module FN module PDF module Node def LoadImage(file, var) FN::Node::Base("load_image", :file => file, :assigns => var).extend(LoadImage) end module LoadImage include FN::Node::Base def visit(struct, debug = false) has_no_children img = struct.load_image("auto", self[:file], "") struct.assigns self, img end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems