AnsweredAssumed Answered

Export Two data frame export to the correct extent

Question asked by geonetadmin on Jun 12, 2013
Original User: alex92190

Hi all,
I am trying to create that would export the left panel and right panel on a separate pdf.
Attached is the script I created. It only only exports one data frame. I like to have the two left data frames (main data frame and inset map) as well any graphic elements (title) exported to pdf. Any idea on how to create this script?
Thanks,
Alex
import arcpy, os
inputPath = r"K:\Projects_1\Cal_DFG\00042_13_HatcheryBA_ROD\mapdoc\Species_Range\Reptiles"
outputPath = r"K:\Projects_1\Cal_DFG\00042_13_HatcheryBA_ROD\outgoing\pdf\Species_Range"

#Loop through each MXD file
for filename in os.listdir(inputPath):
    fullpath = os.path.join(inputPath, filename)
    if os.path.isfile(fullpath):
        if filename.lower().endswith(".mxd"):
         mxd = arcpy.mapping.MapDocument(fullpath)
         dfs = arcpy.mapping.ListDataFrames(mxd)
         for df in dfs:
             arcpy.mapping.ExportToPDF(mxd, outputPath + "\\" + df.name + ".pdf", df, df_export_width=21.5, df_export_height=33.5))
            


[ATTACH=CONFIG]25234[/ATTACH][ATTACH=CONFIG]25235[/ATTACH]

Attachments

Outcomes