<?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: ODS PDF hyperlink in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403629#M19588</link>
    <description>&lt;P&gt;Place the highlighting style and link information immediately before the text you want&amp;nbsp;affected. Since you currently have it before "For resources ..." that is where the style goes into effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS PDF text="For resources and information, click ^S={font_size=9pt font_face=Arial URL='&amp;amp;urlPath.'}here";&lt;/P&gt;</description>
    <pubDate>Thu, 12 Oct 2017 17:31:04 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-10-12T17:31:04Z</dc:date>
    <item>
      <title>ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403620#M19587</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a hyperlink on a PDF document but only want to highlight the link on one word, see example below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS PDF text="^S={font_size=9pt font_face=Arial URL='&amp;amp;urlPath.'}For resources and information, click here";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is highlighting the whole&amp;nbsp;statement&amp;nbsp;but my interest is highlighting&amp;nbsp;"here".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I accomplish this without creating a separate line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403620#M19587</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2017-10-12T17:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403629#M19588</link>
      <description>&lt;P&gt;Place the highlighting style and link information immediately before the text you want&amp;nbsp;affected. Since you currently have it before "For resources ..." that is where the style goes into effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS PDF text="For resources and information, click ^S={font_size=9pt font_face=Arial URL='&amp;amp;urlPath.'}here";&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403629#M19588</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-12T17:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403643#M19589</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="style.PNG" style="width: 287px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15828iE4B85459D0F35DEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="style.PNG" alt="style.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the suggestion and it didn't create the hyperlink and the font format will not be the same for the remaining text.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 17:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403643#M19589</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2017-10-12T17:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403728#M19595</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without a value for your macro variable it's kind of hard to test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it isn't clear from your initial post which text wanted which style elements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 23:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403728#M19595</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-10-12T23:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403800#M19596</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my macro value:&lt;/P&gt;&lt;P&gt;%let urlPath = %str(&lt;A href="https://www.fda.gov/" target="_blank"&gt;https://www.fda.gov/&lt;/A&gt;);&lt;/P&gt;&lt;P&gt;And I am not sure what you meant by the text style element. If you look at the screen shot I posted, the hyperlink word "here" has a different format compared to the remaining words in the text.&lt;/P&gt;&lt;P&gt;ODS PDF text="For resources and information, click ^S={font_size=9pt font_face=Arial URL='&amp;amp;urlPath.'}here";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 05:35:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403800#M19596</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2017-10-13T05:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403934#M19599</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; By default, ODS PDF wants the entire "cell" or your entire text string to be the link. You can't add a URL to part of a text string or just part of a cell.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; This Tech Support note: &lt;A href="http://support.sas.com/kb/56/504.html" target="_blank"&gt;http://support.sas.com/kb/56/504.html&lt;/A&gt; explains the workaround -- you highlight the whole string, but make the link color for the string white and then "fake" a link indicator by only underlining the word(s) you want to appear as the link. Your whole string is still clickable, however.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I could not find the Note, at first, when I searched, so I asked the person who supports PDF to make this note easier to find and she is going to update the keywords for this note.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; The note uses PROC ODSTEXT, but I applied the same technique to ODS PDF TEXT in this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods escapechar='^';
 
** 1) test old and new style overrides for URL= compared to TS Note workaround;
ods pdf file='c:\temp\testurl_use_esc.pdf' startpage=no;
  
title link="http://www.setgame.com" 'This is a link';
title2;
  
ods pdf text="^{style[font_size=9pt font_face='Arial Unicode MS' url='http://www.google.com']1) For resources and information, click here}";
ods pdf text="^S={font_size=9pt font_face='Arial Unicode MS' url='http://www.sas.com'}2) For resources and information, click here ";
ods pdf text="^{style [font_size=9pt url='http://support.sas.com' linkcolor=white]3) Here is a URL link to the ^{style [color=blue textdecoration=underline]SAS Customer Support site}. Check it out!}" ;
  
    
proc print data=sashelp.class(obs=3);
run;
ods pdf close;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and here's the output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdf_url_workaround.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15864iF04E83C0E8BA03E0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pdf_url_workaround.png" alt="pdf_url_workaround.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 14:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/403934#M19599</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-10-13T14:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF hyperlink</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/404151#M19612</link>
      <description>&lt;P&gt;Thank you Cynthia as always.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 21:39:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-hyperlink/m-p/404151#M19612</guid>
      <dc:creator>HabAM</dc:creator>
      <dc:date>2017-10-13T21:39:03Z</dc:date>
    </item>
  </channel>
</rss>

