<?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: Not quite getting what I want from PrintTask in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666602#M62262</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: senkang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have figured out the solution for this. When you publish your map service in ArcGIS Server 10.1, make sure you set the max image height and max image width. This setting can be found in Advanced Properties under parameters settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it is helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Husen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 00:37:48 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-04-18T00:37:48Z</dc:date>
    <item>
      <title>Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666598#M62258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm just getting my feet wet with the PrintTask functionality in v3.3 of the API. Ideally, I just wanted to take what I see on the screen, export it to a JPEG, and then insert that into a "report" that I build on the fly with JS &amp;amp; HTML. I'm using PrintTask and the "Export Web Map Task" from our 10.1 install of ArcGIS Server. The first attachment (screenshot01) is what I see on my screen. The second attachment (screenshot02) shows the exported JPEG as it appears in my generated report.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As you can see, they only loosely resemble each other. I have two census feature layers that have dynamic labels which do not even show up in the exported JPEG (this might be a bug? I recall reading a thread recently somewhat related to this..). Next, the linework in the exported image are huge and bloated compared with what I see on screen. How do I produce an exported image that is as close to WYSIWYG as possible?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my relevant code for my printTask creation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; pTemplate = new esri.tasks.PrintTemplate();
 pTemplate.exportOptions = {
&amp;nbsp; width: 600,
&amp;nbsp; height: 400,
&amp;nbsp; dpi: 300
 };
 pTemplate.format = "jpg";
 pTemplate.layout = "MAP_ONLY";
 pTemplate.preserveScale = false;
 pTemplate.showAttribution = false;

 var params = new esri.tasks.PrintParameters();
 params.map = map;
 params.template = pTemplate;
&amp;nbsp; 
 thePrintTask = new esri.tasks.PrintTask(url);
 thePrintTask.execute(params, function(result) {
&amp;nbsp; jpgMapDiv = theDocument.createElement("div");
&amp;nbsp; jpgMapDiv.setAttribute("id","jpegMap");
&amp;nbsp; setStyle(jpgMapDiv, {
&amp;nbsp;&amp;nbsp; width : '95%',
&amp;nbsp;&amp;nbsp; height: '400px',
&amp;nbsp;&amp;nbsp; marginRight : 'auto',
&amp;nbsp;&amp;nbsp; marginLeft : 'auto',
&amp;nbsp;&amp;nbsp; borderTop: '2px solid black',
&amp;nbsp;&amp;nbsp; padding: "10px"
&amp;nbsp; });&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; jpgMapDiv.innerHTML = "&amp;lt;img src=\"" + result.url + "\" style=\"border:2px solid black;left:25%\"\&amp;gt;";
&amp;nbsp; theDocument.body.appendChild(jpgMapDiv);
 }); &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THANKS!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666598#M62258</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-12T04:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666599#M62259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the Problem are the 300dpi of your config try it with 96dpi.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 05:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666599#M62259</guid>
      <dc:creator>JanJeske</dc:creator>
      <dc:date>2013-04-09T05:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666600#M62260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: senkang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you fixed this issue? I come across the same problem with ArcGIS server 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The export quality is different to 10.0. If the dpi is set to higher value than 96 dpi. The symbology of line and point features become big.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug or what?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Husen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 00:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666600#M62260</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-17T00:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666601#M62261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Husen-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, unfortunately, I have not resolved this (or worked on it lately). I experience the symbology swelling like you describe.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 13:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666601#M62261</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-04-17T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666602#M62262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: senkang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have figured out the solution for this. When you publish your map service in ArcGIS Server 10.1, make sure you set the max image height and max image width. This setting can be found in Advanced Properties under parameters settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it is helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Husen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 00:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666602#M62262</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-18T00:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666603#M62263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the suggestion, Husen, but I'm a little puzzled about it. My services seem to have 2048 pixels as image widths/heights. Are you suggesting that I change those numbers to match the dimensions I use in my JS code? In the example code I posted in this thread, I'm specifying a 600x400 printTask JPEG. Are you suggesting that I specify 600x400 instead of the current 2048x2048 for my services under the paramaters tab?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[Side note- where is this option documented? I sure couldn't find it under the ArcGIS Server 10.1 help]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 14:09:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666603#M62263</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2013-04-18T14:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Not quite getting what I want from PrintTask</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666604#M62264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: senkang&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Steve&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is documented here: &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00sp00000013000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//00sp00000013000000&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the example table on how to calculate the height and width.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 23:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/not-quite-getting-what-i-want-from-printtask/m-p/666604#M62264</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-18T23:53:19Z</dc:date>
    </item>
  </channel>
</rss>

