class PDF::Reader::XRef
def [](ref)
returns the byte offset for the specified PDF object.
###############################################################################
def [](ref) @xref[ref.id][ref.gen] rescue raise InvalidObjectError, "Object #{ref.id}, Generation #{ref.gen} is invalid" end