Class: EideticPDF::PdfObjects::Trailer
- Inherits:
-
PdfDictionary
- Object
- PdfDictionary
- EideticPDF::PdfObjects::Trailer
- Defined in:
- lib/epdfo.rb
Instance Attribute Summary collapse
-
#xref_table_size ⇒ Object
Returns the value of attribute xref_table_size.
-
#xref_table_start ⇒ Object
Returns the value of attribute xref_table_start.
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_size ⇒ Object
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_start ⇒ Object
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_s ⇒ Object
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 |