2

Sometimes I use the check box 'Clip Output to Graphics Extent' when exporting using the UI. I currently have a largish batch of mxd's that I want to export with this button checked. I am using the ExportToPNG for the batch export but can't see how to set the 'Clip Output to Graphics Extent'. Thus all my outputs have white borders.

Based on my googling this isn't possible but can someone please confirm? What are my alternatives for clipping white space from layout views?

Example with Clip Output to Graphics Extent unchecked: Border

Example with Clip Output to Graphics Extent checked: No Border

  • Can you provide a image example of an output with a white border? – artwork21 Sep 16 '15 at 12:39
  • @artwork21 I can, but I need to mock up something not confidential and find a web hosting site my work doesn't block. – DMusketeer Sep 16 '15 at 13:00
  • @artwork21 example images added. – DMusketeer Sep 16 '15 at 13:06
2

For those that don't know what this option does, see When to use Clip Output to Graphics Extent in ArcMap?

There a geonet thread about this missing functionality in arcpy. The workaround offered there is to use masking layer.

The masking layer can "white out" the zone outside the area of interest before the export is done.

This can be done in the user interface with Data Driven Pages using page definitions (via the definition query tab).

Or it can be done with arcpy.mapping in a similar way but by automating the updating of definition queries.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.