Sha256: 6aabbbbb581c417f083a9e8af32fb5abbe337c9f73b93f6a8bffa25f987f34fa

Contents?: true

Size: 685 Bytes

Versions: 4

Compression:

Stored size: 685 Bytes

Contents

require File.dirname(__FILE__) + "/../../node/base"
require "PDFlib"
module FN
  module PDF
    module Node
      
      def BeginPageExt(width, height, number)
        FN::Node::Base("begin_page_ext", :width => width, :height => height, :number => number).extend(BeginPageExt)
      end
      
      module BeginPageExt 
        include FN::Node::Base
        
        def visit(struct)
          struct.begin_page_ext(self[:width].to_i, self[:height].to_i, "")
          struct[CURRENT_PAGE_WIDTH]  = self[:width].to_i
          struct[CURRENT_PAGE_HEIGHT] = self[:height].to_i
          visit_children struct
          struct.suspend_page("")
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fn_document-0.9.6 lib/fn/pdf/node/begin_page_ext.rb
fn_document-0.9.4 lib/fn/pdf/node/begin_page_ext.rb
fn_document-0.9.3 lib/fn/pdf/node/begin_page_ext.rb
fn_document-0.9.2 lib/fn/pdf/node/begin_page_ext.rb