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

Version Path
fn_document-0.9.18 lib/fn/pdf/node/load_image.rb
fn_document-0.9.17 lib/fn/pdf/node/load_image.rb
fn_document-0.9.16 lib/fn/pdf/node/load_image.rb
fn_document-0.9.15 lib/fn/pdf/node/load_image.rb
fn_document-0.9.14 lib/fn/pdf/node/load_image.rb
fn_document-0.9.13 lib/fn/pdf/node/load_image.rb
fn_document-0.9.12 lib/fn/pdf/node/load_image.rb
fn_document-0.9.11 lib/fn/pdf/node/load_image.rb
fn_document-0.9.10 lib/fn/pdf/node/load_image.rb
fn_document-0.9.9 lib/fn/pdf/node/load_image.rb
fn_document-0.9.8 lib/fn/pdf/node/load_image.rb
fn_document-0.9.7 lib/fn/pdf/node/load_image.rb