Class: Rpdf2txt::Unknown

Inherits:
PdfObject show all
Defined in:
lib/rpdf2txt/object.rb

Instance Attribute Summary

Attributes inherited from PdfObject

#attributes, #decoder, #oid, #src

Instance Method Summary collapse

Methods inherited from PdfObject

#_parse_attributes, #build_tree, #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

#to_i(*args) ⇒ Object



367
368
369
# File 'lib/rpdf2txt/object.rb', line 367

def to_i(*args)
  ((match = /obj\s*(\d+)/n.match(@src)) && match[1]).to_i(*args)
end