<?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: Printing Issue - Text Not Displaying in Print Layout in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663659#M61936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The issue is that the text will not print in my print layout that I have configured. If the user adds in text to the map, they can change the color, size and angle. However, when pringing out the map using the print widget, none these settings carry over to the print layout. By default, the text shows up in black.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the issue you are facing here is a known software limitation. It is necessary to supply all of the font properties when creating a new Font object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[#NIM099497 The printing service only honors the font properties of textSymbols if all or none of the new Font object parameters are defined.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like this in your code, and see if the customization appears in the printout (please note that this is in AMD style):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var font = new Font("40pt", Font.STYLE_ITALIC, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "Courier New"); &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 May 2014 14:19:23 GMT</pubDate>
    <dc:creator>Noah-Sager</dc:creator>
    <dc:date>2014-05-06T14:19:23Z</dc:date>
    <item>
      <title>Printing Issue - Text Not Displaying in Print Layout</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663658#M61935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have an application where a user can add graphics including text to the map.&amp;nbsp; I also have a geocoding tool where the user can locate an address and a marker symbol will display along with the address as a text label.&amp;nbsp; The issue is that the text will not print in my print layout that I have configured.&amp;nbsp; If the user adds in text to the map, they can change the color, size and angle.&amp;nbsp; However, when pringing out the map using the print widget, none these settings carry over to the print layout.&amp;nbsp; By default, the text shows up in black.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently using the ArcGIS JavaScript 3.5 API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any solutions to these issues?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please refer to the screenshots:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Text from Geocoding Tool&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Application with Point (Address Point) and Text (Address Label):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]33620[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Application Printed Out using Print Widget (notice missing Address Labels):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]33621[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Adding Text&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Added Text as University, Red, 20pt, Normal, Align Start, Text Angle 45 within the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]33622[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. When generating a Print Out (notice the text is in black)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]33623[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663658#M61935</guid>
      <dc:creator>IanPeebles</dc:creator>
      <dc:date>2014-05-06T14:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Issue - Text Not Displaying in Print Layout</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663659#M61936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The issue is that the text will not print in my print layout that I have configured. If the user adds in text to the map, they can change the color, size and angle. However, when pringing out the map using the print widget, none these settings carry over to the print layout. By default, the text shows up in black.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the issue you are facing here is a known software limitation. It is necessary to supply all of the font properties when creating a new Font object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[#NIM099497 The printing service only honors the font properties of textSymbols if all or none of the new Font object parameters are defined.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try something like this in your code, and see if the customization appears in the printout (please note that this is in AMD style):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var font = new Font("40pt", Font.STYLE_ITALIC, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "Courier New"); &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 14:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663659#M61936</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-05-06T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Issue - Text Not Displaying in Print Layout</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663660#M61937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ipeebles&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Ian,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think the issue you are facing here is a known software limitation. It is necessary to supply all of the font properties when creating a new Font object.&lt;BR /&gt;&lt;BR /&gt;[#NIM099497 The printing service only honors the font properties of textSymbols if all or none of the new Font object parameters are defined.]&lt;BR /&gt;&lt;BR /&gt;Try something like this in your code, and see if the customization appears in the printout (please note that this is in AMD style):&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var font = new Font("40pt", Font.STYLE_ITALIC, Font.VARIANT_NORMAL, Font.WEIGHT_BOLD, "Courier New"); &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;&lt;BR /&gt;-Noah&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Noah,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The text properties are defined in the code, but only the marker symbol shows up.&amp;nbsp; Here is my code for the symbol/text output for the geocoding results.&amp;nbsp; This is shown in screenshots 1 and 2 on my first post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;With the text properties defined, the text still does not display on the print out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Refer to the line where I have the text properties defined and the color:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
//add a text symbol to the map listing the location of the matched address.
var displayText = candidate.address;

var font = new esri.symbol.Font("12pt",esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_BOLD,"Helvetica");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
var textSymbol = new esri.symbol.TextSymbol(displayText,font,new dojo.Color("#FF0000"));
textSymbol.setOffset(0,12);

map.graphics.add(new esri.Graphic(geom, textSymbol));
return false; //break out of loop after one candidate with score greater&amp;nbsp; than 80 is found.
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663660#M61937</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T04:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Issue - Text Not Displaying in Print Layout</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663661#M61938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ian,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested with your font code, and it prints just fine for me. I only used the one line of code though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var font = new esri.symbol.Font("12pt",esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_BOLD,"Helvetica");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There may be two other issues going on:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) are you using a proxy in your application? I highly recommend our new &lt;/SPAN&gt;&lt;A href="https://github.com/Esri/resource-proxy"&gt;resource proxy&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;the length of the print request may be getting truncated, and the proxy will help with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) for the colors, try using RGB values (e.g. 255, 0, 0) instead of hexadecimal (e.g. #FF0000), and see if that helps&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 15:21:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663661#M61938</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-05-06T15:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Issue - Text Not Displaying in Print Layout</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663662#M61939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ipeebles&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Ian,&lt;BR /&gt;&lt;BR /&gt;I tested with your font code, and it prints just fine for me. I only used the one line of code though.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;var font = new esri.symbol.Font("12pt",esri.symbol.Font.STYLE_NORMAL, esri.symbol.Font.VARIANT_NORMAL,esri.symbol.Font.WEIGHT_BOLD,"Helvetica");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;There may be two other issues going on:&lt;BR /&gt;&lt;BR /&gt;1) are you using a proxy in your application? I highly recommend our new &lt;A href="https://github.com/Esri/resource-proxy"&gt;resource proxy&lt;/A&gt;&lt;BR /&gt;the length of the print request may be getting truncated, and the proxy will help with this&lt;BR /&gt;&lt;BR /&gt;2) for the colors, try using RGB values (e.g. 255, 0, 0) instead of hexadecimal (e.g. #FF0000), and see if that helps&lt;BR /&gt;&lt;BR /&gt;-Noah&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Noah, thanks for the reply.&amp;nbsp; I am using a proxy and here is how it is specified within the application (index.htm):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I host the proxy page configuration on our internal server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// PROXY PAGE CONFIGURATION&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;esri.config.defaults.io.proxyUrl = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://arcgis02/Proxy/proxy.ashx" rel="nofollow" target="_blank"&gt;http://arcgis02/Proxy/proxy.ashx&lt;/A&gt;&lt;SPAN&gt;";&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the 3.5 version of the JS API.&amp;nbsp; Can I download that proxy and host that on the server?&amp;nbsp; Would that work with my existing applications that are written in JS 3.5?&amp;nbsp; Any compatibility issues?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I changed, the colors of the text to RGB.&amp;nbsp; Here is the updated code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var textSymbol = new esri.symbol.TextSymbol(displayText,font,new dojo.Color([255,0,0,0.75]));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still having the same issue.&amp;nbsp; The text does not show up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 17:01:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663662#M61939</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-05-06T17:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Printing Issue - Text Not Displaying in Print Layout</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663663#M61940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, the new proxy should work fine with the 3.5 version of the JS API. There are some different configurations with the new proxy, so please read the documentation thoroughly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure what the issue is at this point. I recommend creating a &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/"&gt;jsfiddle&lt;/A&gt;&lt;SPAN&gt;, to share your code with us here, or contacting Esri Support and logging an Incident.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Noah&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 May 2014 17:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/printing-issue-text-not-displaying-in-print-layout/m-p/663663#M61940</guid>
      <dc:creator>Noah-Sager</dc:creator>
      <dc:date>2014-05-06T17:08:58Z</dc:date>
    </item>
  </channel>
</rss>

