'Accesses the page contents.
:return: the ``/Contents`` object, or ``None`` if it doesn\'t exist.
``/Contents`` is optional, as described in PDF Reference  7.7.3.3'

def getContents(self):

    if ('/Contents' in self):
        return self['/Contents'].getObject()
    else:
        return None
