Method: PDF::Reader::XRef#load
- Defined in:
- lib/pdf/reader/xref.rb
#load(offset = nil) ⇒ Object
Read the xref table from the underlying buffer. If offset is specified the table will be loaded from there, otherwise the default offset will be located and used.
Will fail silently if there is no xref table at the requested offset.
44 45 46 47 48 49 50 51 |
# File 'lib/pdf/reader/xref.rb', line 44 def load (offset = nil) @buffer.seek(offset || @buffer.find_first_xref_offset) token = @buffer.token if token == "xref" load_xref_table end end |