'This method is called by exporters to inform items that they are being drawn for export
with a specific set of options. Items access these via self._exportOptions.
When exporting is complete, _exportOptions is set to False.'

def setExportMode(self, export, opts=None):

    if (opts is None):
        opts = {}
    if export:
        self._exportOpts = opts
    else:
        self._exportOpts = False
