Select to view content in your preferred language

Exporting to PDF from DataDrivenPages - Legend renders incorrectly

794
1
04-13-2011 02:49 PM
JeffBurton
Deactivated User
I'm exporting a number of maps by sector and theme, 6 themes and 32 sectors, so arcpy.mapping and dataDrivenPages could be a nice time saver.

However, the legend on the PDF export does not respect settings made in the .mxd. The legend in the mxd looks fine of course, but legend in the exports is far too large, spacing, fontsize, legend size etc.

So I'm setting the width and x/y position in the python script to ensure that the legend shows up where it should. This ALMOST works, but in the export there is no space at all between the patch/symbol and the description, so the design now looks shoddy and is a bit hard to read.
It also sometimes sets the font as huge, or too small, or runs it outside the legend box.

I've tried setting the spacing values and text size right when creating the legend, resizing in the mxd, etc. The only thing that comes close to working is setting the width and XY position in python.

Can I access the fontsize and spacing and etc somehow from python?

So close to perfect, but close is not good enough in this case.
Tags (2)
0 Kudos
1 Reply
JeffBurton
Deactivated User
To answer my own question, I just changed the workflow to add/remove layers, rather than turning their visibility on/off, and things now work as expected.
0 Kudos