Sha256: d1c37113be8813303c2cc5ed3a101f7ecd1a61573cf1a4ae76e0739a543e8b94
Contents?: true
Size: 492 Bytes
Versions: 4
Compression:
Stored size: 492 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) has_no_children img = struct.load_image("auto", self[:file], "") struct.assigns self, img end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems