Class: RPDF::Page
- Inherits:
-
PDFDictionary
- Object
- PDFObject
- PDFDictionary
- RPDF::Page
- Defined in:
- lib/rpdf/page.rb
Overview
Page Object
- PDFRef15 p118
Instance Attribute Summary
Attributes inherited from PDFDictionary
Attributes inherited from PDFObject
#generation_number, #object_number
Instance Method Summary collapse
-
#initialize(document, parent) ⇒ Page
constructor
A new instance of Page.
Methods inherited from PDFDictionary
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 |