Class: EideticPDF::PdfObjects::XRefTable

Inherits:
Array
  • Object
show all
Defined in:
lib/epdfo.rb

Overview

cross-reference table, allows quick access to any object in body

Instance Method Summary collapse

Instance Method Details

#sizeObject



385
386
387
# File 'lib/epdfo.rb', line 385

def size
  self.inject(0) { |size, ary| size + ary.size }
end

#to_sObject



389
390
391
# File 'lib/epdfo.rb', line 389

def to_s
  "xref\n" << self.map { |entry| entry.to_s }.join
end