Class: EideticPDF::PdfObjects::Trailer

Inherits:
PdfDictionary show all
Defined in:
lib/epdfo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from PdfDictionary

#[], #[]=, #initialize, #update

Constructor Details

This class inherits a constructor from EideticPDF::PdfObjects::PdfDictionary

Instance Attribute Details

#xref_table_sizeObject

Returns the value of attribute xref_table_size.



411
412
413
# File 'lib/epdfo.rb', line 411

def xref_table_size
  @xref_table_size
end

#xref_table_startObject

Returns the value of attribute xref_table_start.



410
411
412
# File 'lib/epdfo.rb', line 410

def xref_table_start
  @xref_table_start
end

Instance Method Details

#root=(root) ⇒ Object



418
419
420
# File 'lib/epdfo.rb', line 418

def root=(root)
  self['Root'] = root.reference_object
end

#to_sObject



422
423
424
425
426
427
428
# File 'lib/epdfo.rb', line 422

def to_s
  s = "trailer\n"
  s << super
  s << "startxref\n"
  s << "#{xref_table_start}\n"
  s << "%%EOF\n"
end