<?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: Export to pdf from webservices produces missing layers in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1581#M25</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't have any methods to check to see if layers are completely displayed.&amp;nbsp; I know you want to avoid introducing delays but have you tried something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time.sleep(5) #5 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Feb 2011 13:39:03 GMT</pubDate>
    <dc:creator>JeffBarrette</dc:creator>
    <dc:date>2011-02-03T13:39:03Z</dc:date>
    <item>
      <title>Export to pdf from webservices produces missing layers</title>
      <link>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1580#M24</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are automating map export to pdf using arcpy and have found that in some cases the exported pdf is missing one or more layers, which are sourced from map services.&amp;nbsp; Experimenting with this in ArcMap (UI) it seems that if you add some services to your map that are a little slow (and not cached) and hit the export button before all the data has been retrieved and drawn on the map, you also get a pdf that is missing pieces or even whole layers.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way to force arcmap to check that all the relevant data has been retrieved from the server before firing off the export?&amp;nbsp; We would hope to avoid building in delays etc to work around this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW calling a refresh on the dataframe doesn't help, presumably because that starts a fresh round of requesting the data from the servers, redrawing etc which is subsequently interrupted when the script calls export.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 13:57:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1580#M24</guid>
      <dc:creator>BenScott</dc:creator>
      <dc:date>2011-02-02T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export to pdf from webservices produces missing layers</title>
      <link>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1581#M25</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ben,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We don't have any methods to check to see if layers are completely displayed.&amp;nbsp; I know you want to avoid introducing delays but have you tried something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import time&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;time.sleep(5) #5 seconds&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Feb 2011 13:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1581#M25</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-02-03T13:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export to pdf from webservices produces missing layers</title>
      <link>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1582#M26</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff - thanks for your reply.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We tried a sleep time and have found that our guess on the cause of the problem was incorrect.&amp;nbsp; We still get missing layers with a long sleep time in the code, and furthermore we have found that export to jpeg works without an issue (with or without a sleep time).&amp;nbsp; This would seem to indicate that it is something to do with the way the export tool builds the pdf.&amp;nbsp; Could it be something to do with memory or cpu resources?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Feb 2011 12:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1582#M26</guid>
      <dc:creator>BenScott</dc:creator>
      <dc:date>2011-02-04T12:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Export to pdf from webservices produces missing layers</title>
      <link>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1583#M27</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ben&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I had the same problem, but I have solved the problem, my problem was the connection to the data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you try to publish the mxd to the server, it will tell you if there is problems with the connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get an error like this, it's wrong&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]9770[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try to resolve the connection error, and i think that is that. It worked for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mads&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2011 08:44:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1583#M27</guid>
      <dc:creator>LemvigKommune</dc:creator>
      <dc:date>2011-10-28T08:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export to pdf from webservices produces missing layers</title>
      <link>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1584#M28</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some service layers (e.g., WMS) have built in limitations on the server side.&amp;nbsp; The server won't serve an image too large in size.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A work around is to reduce the DPI (resolution).&amp;nbsp; Your ExportToJPEG could be working because its default DPI is 96 whereas the default DPI for PDF is 300.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2011 13:39:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/export-to-pdf-from-webservices-produces-missing/m-p/1584#M28</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-10-31T13:39:44Z</dc:date>
    </item>
  </channel>
</rss>

