'Get the page mode.
See :meth:`setPageMode()<PdfFileWriter.setPageMode>`
for a description of valid modes.
:return: Page mode currently being used.
:rtype: ``str``, ``None`` if not specified'

def getPageMode(self):

    try:
        return self.trailer['/Root']['/PageMode']
    except KeyError:
        return None
