Class: RPDF::Page

Inherits:
PDFDictionary show all
Defined in:
lib/rpdf/page.rb

Overview

Page Object

PDFRef15 p118

Instance Attribute Summary

Attributes inherited from PDFDictionary

#dict

Attributes inherited from PDFObject

#generation_number, #object_number

Instance Method Summary collapse

Methods inherited from PDFDictionary

#[], #[]=, #to_s, #update

Methods inherited from PDFObject

#indirect?, #invalidate, #invalidated?, #to_pdf, #to_ref

Constructor Details

#initialize(document, parent) ⇒ Page

Returns a new instance of Page.



9
10
11
12
13
14
15
16
17
# File 'lib/rpdf/page.rb', line 9

def initialize(document, parent)
  super({ :Type => :Page,
          :Parent => parent,
          :Resources => {},
          :MediaBox => Rectangle.new(0, 0, 612, 792) }, 
        document)

  parent.add_page(self)
end