Sha256: e1b9b04ad3a4d30322ba8fdbd5ede3ff5da8e635ddb725bf4bbe10370e0b7892

Contents?: true

Size: 900 Bytes

Versions: 12

Compression:

Stored size: 900 Bytes

Contents

require File.dirname(__FILE__) + "/../../node/base"
require "PDFlib"
module FN
  module PDF
    module Node

      def OpenPdiPage(pdi_var, page_number, page_var)
        FN::Node::Base("open_pdi_page", :pdi => pdi_var, :number => page_number, :assigns => page_var).extend(OpenPdiPage)
      end
      
      module OpenPdiPage 
        include FN::Node::Base
      
        def visit(struct, debug = false)
          if debug
            puts "struct[self[:pdi]]: #{struct[self[:pdi]]}"
            puts "self[:number].to_i: #{self[:number].to_i}"
            puts "I Think I'm On Page: #{struct.open_pdi_page(struct[self[:pdi]], self[:number].to_i, "")}"
          end
          pg = struct.open_pdi_page(struct[self[:pdi]], self[:number].to_i, "")
          struct.assigns self, pg
          visit_children(struct, debug)
          struct.close_pdi_page(pg)
        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/open_pdi_page.rb
fn_document-0.9.17 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.16 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.15 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.14 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.13 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.12 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.11 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.10 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.9 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.8 lib/fn/pdf/node/open_pdi_page.rb
fn_document-0.9.7 lib/fn/pdf/node/open_pdi_page.rb