<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Layout and page setup in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255966#M19682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The page size property of mxds are read only in arcpy. You would have to set these manually, or use ArcObjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2012 17:31:31 GMT</pubDate>
    <dc:creator>MathewCoyle</dc:creator>
    <dc:date>2012-12-18T17:31:31Z</dc:date>
    <item>
      <title>Layout and page setup</title>
      <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255965#M19681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I???m using a script to allow the users to select from different map templates, the templates range in paper size from Letter to ansi D.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My script finds a chosen attribute and zooms the map to that location, then exports to map as a pdf. My problem is that the page/paper size doesn???t appear to change when switching to the target mxd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I notice the same behavior when using the ???switch layout??? function in the Layout toolbar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea how to use the page and paper settings of my target MXD?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255965#M19681</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-12-18T17:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Layout and page setup</title>
      <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255966#M19682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The page size property of mxds are read only in arcpy. You would have to set these manually, or use ArcObjects.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:31:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255966#M19682</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-12-18T17:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Layout and page setup</title>
      <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255967#M19683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the page size set manually on my target mxd. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm in an mxd, lets call it default.mxd which is set at size letter, I want to print a ansi C sized map and have a template for that on my HD. Template is called ansiC.mxd and is set. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I run a python script that selects the ansiC.mxd and exports it to a PDF. However the page size used appers to be from Default.mxd rather than the template ansiC.mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just want to honor the settings in my template mxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:52:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255967#M19683</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-12-18T17:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Layout and page setup</title>
      <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255968#M19684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What interaction is there between the two mxds?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 17:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255968#M19684</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2012-12-18T17:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Layout and page setup</title>
      <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255969#M19685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you call multiple MXDs and export, the export functions will use the settings saved in each MXD.&amp;nbsp; For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
mxd1 = arcpy.mapping.MapDocument("c:/path/largeSize.mxd")
arcpy.mapping.ExportToPDF(mxd1, outputPath)
mxd2 = arcpy.mapping.MapDocument("c:/path/smallSize.mxd")
arcpy.mapping.ExportToPDF(mxd2, outputPath)
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Will produce two different PDFs, each at different page sizes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using "CURRENT" and trying to load properties from other MXDs, that is NOT possible.&amp;nbsp; As suggested, pagesize and orientation can not be modified within an MXD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255969#M19685</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2021-12-11T12:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Layout and page setup</title>
      <link>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255970#M19686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your help. I'm wondering if &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;from arcpy import env &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Might be my issue, I'll run through it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UPDATE - Yup that was it!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2012 15:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/layout-and-page-setup/m-p/255970#M19686</guid>
      <dc:creator>JonPedder</dc:creator>
      <dc:date>2012-12-19T15:44:24Z</dc:date>
    </item>
  </channel>
</rss>

