def obj(doc: Doc, o_num, o_gen = None):
    """For direct access to an indirect object without reference resolution (see get_object)."""
    if o_gen is None:
        o_gen = doc.index[-1][o_num]['o_gen']
    iref = complex(o_gen, o_num)
    return get_object(doc, iref)
For direct access to an indirect object without reference resolution (see get_object).
pdfsyntax/docstruct.py