Layout export settings - python

Been trying to modify this layout script that [dharman] produced. Works really great for laying out and exporting multiple sheets, but need to change some of the export settings.

I need to get a raster version of the drawings I’m working on because there is some 3D elements. Doing this for 200 components. Not really familiar yet with rhino common and been mostly working with rhino script syntax.

The greyed out image is the ideal version and the wireframe/red version is what is currently being outputted from the original script. Any help or thoughts would be much appreciated.