Class | PDF::Reader::XRef |
In: |
lib/pdf/reader/xref.rb
|
Parent: | Object |
An internal PDF::Reader class that represents the Xref table in a PDF file An Xref table is a map of object identifiers and byte offsets. Any time a particular object needs to be found, the Xref table is used to find where it is stored in the file.
create a new Xref table based on the contents of the supplied PDF::Reader::Buffer 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.
Assumes the underlying buffer is positioned at the start of an Xref table and processes it into memory.
returns the byte offset for the specified PDF object.
ref - a PDF::Reader::Reference object containing an object ID and revision number