Hi, I've been trying to automate the creation of county maps at a constant scale of 1:63360. To maintain scale, I have to change either the page size or the data frame size. I don't think there is a way to change page size using arcpy, or is there? But it's pretty easy to change data frame size using arcpy. But then, rather than export the page layout, I would like to export the data frame. This works great, and it's fun to watch the data frame jumping around to fit each county, but when I export using
ExportToPDF(mxd, "file.pdf", df, df_export_width=1600, df_export_height=1200), it doesn't export the legend or any text elements in the data frame. Is there a way to export the data frame along with all the other map elements? Would grouping the other elements with the data frame work? If so, how do you group elements in arcpy? Thanks!