Class: Rpdf2txt::CatalogNode
- Defined in:
- lib/rpdf2txt/object.rb
Instance Attribute Summary
Attributes inherited from TreeNode
Attributes inherited from PdfObject
#attributes, #decoder, #oid, #src
Instance Method Summary collapse
Methods inherited from TreeNode
Methods inherited from PdfObject
#_parse_attributes, #catalogue_object, #decoded_stream, #extract_attribute_stream, #initialize, #parse_attributes, #revision_id
Constructor Details
This class inherits a constructor from Rpdf2txt::PdfObject
Instance Method Details
#build_tree(object_catalogue, parent = nil) ⇒ Object
471 472 473 474 475 476 |
# File 'lib/rpdf2txt/object.rb', line 471 def build_tree(object_catalogue, parent=nil) id = extract_oids(@attributes[:pages]).first @pages = object_catalogue[id] @pages.build_tree(object_catalogue, self) super end |
#each(&block) ⇒ Object
477 478 479 |
# File 'lib/rpdf2txt/object.rb', line 477 def each(&block) @pages.each(&block) end |