<?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: Exporting Layouts as pdfs in Pro Using a gp Service in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533377#M23437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is you can't use a map series with that and I am modifying other elements on the layout. It seems to be working now... I added the arcpy.SignInToPortal function and it now pulls in the layers. I'm sure I'll run into more problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Nov 2020 00:01:12 GMT</pubDate>
    <dc:creator>Aaron</dc:creator>
    <dc:date>2020-11-11T00:01:12Z</dc:date>
    <item>
      <title>Exporting Layouts as pdfs in Pro Using a gp Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533375#M23435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;What I want to do seems pretty basic: Export a map series layout (or even a single page layout) in Portal using a gp service created in Pro (i.e. Share As &amp;gt; Web Tool) using the original data sources.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Since I can't use network file shares as a data store (security issue I am told), I simply let it copy the aprx to the server. This exports the current state of the feature service data in the map to a file gdb and copies it up. Whenever I run the tool, it obviously uses the local file gdb.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;First of all, would this even respect the original data sources if I had access to network file shares?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;My partial workaround is to replace that aprx with my original aprx that has the connections to the feature services. Works fine... if I set the permissions of the feature service to Everyone.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Otherwise it still exports the pdf only with no data. Interestingly I get no errors (even at debug level) and it still pulls the legend fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I have looked into editing the manifest.json but no idea of the syntax… possible to change credentials? Somehow create a token and pass it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;I know you can rename the msd file to zip to see the contents… I see nothing helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Setting the aprx to CURRENT results in an error after publishing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hopefully I am making this more complicated than it is. Any insight or suggestions are appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="font-size: 15px;"&gt;import sys, os, arcpy&lt;/SPAN&gt;
&lt;SPAN style="font-size: 15px;"&gt;outFile = arcpy.GetParameterAsText(0)&lt;/SPAN&gt;
&lt;SPAN style="font-size: 15px;"&gt;aprx= r"C:\projects\prettymaps.aprx"&lt;/SPAN&gt;
&lt;SPAN style="font-size: 15px;"&gt;layout = aprx.listLayouts("Layout")[0]&lt;/SPAN&gt;
&lt;SPAN style="font-size: 15px;"&gt;layout.exportToPDF(outFile)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:35:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533375#M23435</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2021-12-12T16:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Layouts as pdfs in Pro Using a gp Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533376#M23436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's functionality to reference a Print service within a print widget in Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/portal/latest/use/widget-print.htm" title="https://enterprise.arcgis.com/en/portal/latest/use/widget-print.htm"&gt;Print widget—Portal for ArcGIS | Documentation for ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configure your own custom template to be consumed as a print service:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/server/latest/create-web-apps/windows/tutorial-publishing-additional-services-for-printing.htm" title="https://enterprise.arcgis.com/en/server/latest/create-web-apps/windows/tutorial-publishing-additional-services-for-printing.htm"&gt;Publish a print service with custom layouts from ArcMap—ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2020 22:21:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533376#M23436</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-11-10T22:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Layouts as pdfs in Pro Using a gp Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533377#M23437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem is you can't use a map series with that and I am modifying other elements on the layout. It seems to be working now... I added the arcpy.SignInToPortal function and it now pulls in the layers. I'm sure I'll run into more problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2020 00:01:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/533377#M23437</guid>
      <dc:creator>Aaron</dc:creator>
      <dc:date>2020-11-11T00:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Layouts as pdfs in Pro Using a gp Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/1627468#M96899</link>
      <description>&lt;P&gt;Hey! Do you have any updates on this, Aaron? Did any other issues come up for you?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2025 19:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/exporting-layouts-as-pdfs-in-pro-using-a-gp/m-p/1627468#M96899</guid>
      <dc:creator>kronezone</dc:creator>
      <dc:date>2025-06-26T19:41:51Z</dc:date>
    </item>
  </channel>
</rss>

