<?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: The size of superscripts using escapechars is  DPI-dependent in ODS PDF.  Why? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250354#M15263</link>
    <description>&lt;P&gt;Thanks Xia!&lt;/P&gt;
&lt;P&gt;I've tried to code and it looked fine at first. &amp;nbsp;Then I changed the dpi down to 100dpi and the superscript was back to super large. &amp;nbsp;I dont meant to use such a low dpi, but the issue is weird. &amp;nbsp; &amp;nbsp;Meanwhile, here's the reply I got from tech support:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------email 1 ------------------------------------------&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is in regards to tracking number&amp;nbsp;7611714840&amp;nbsp;where you described the following problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;******** &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The size of superscripts using escapechars is DPI-dependent in ODS PDF&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;******** &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am finding a defect on this issue, and have updated that defect with your report of the problem. &amp;nbsp;The current strategy to work around the problem is to use a non-SAS provided font. In the attached code you will see the use of Times here:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;(header)=[just=r font_face=&lt;/SPAN&gt;&lt;SPAN&gt;"Times"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let me know if this information helps you get the desired results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---email2--------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I am seeing the problem persist when I use Tahoma, which along with Thorndale AMT (the default font for headers in the PRINTER style used by ODS PDF) is a true type font. I believe Times is a Type 1 / postscript font, so the distinction for the problem may be: When truetype fonts are used, the SUPER function is influenced by the DPI= setting on the ODS PDF statement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I am sorry to not have better news, but hope the header switch to Times helps you get the desired results. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2016 15:29:23 GMT</pubDate>
    <dc:creator>morglum</dc:creator>
    <dc:date>2016-02-16T15:29:23Z</dc:date>
    <item>
      <title>The size of superscripts using escapechars is  DPI-dependent in ODS PDF.  Why?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250129#M15252</link>
      <description>&lt;P&gt;Now that took me a while to figure out. &amp;nbsp; The superscripts in my reports where supersmall, and I couldnt figure out why. &amp;nbsp;Turns out superscripts are DPI-dependent. &amp;nbsp;Try the script below using dpi=100 and dpi=300 to see what I mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any way to prevent this behaviour?&lt;/P&gt;
&lt;P&gt;thanks!&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;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods pdf file="c:\temp\report1.pdf" dpi=300;
OPTIONS NODATE NONUMBER;
ods escapechar = '^'; 
title1  
 	j=c "Title" ;
title2 
	j=c "Subtitle";
*note : le truc pour les spanned header de colonnes vient de Beyond the Basics: Advanced PROC REPORT Tips and Tricks ";

footnote1 j=l "Footnote1";
footnote2 j=l "Footnote2";


proc sort data= sashelp.class out=temp;; by sex height weight;
run;

data temp;
set temp;
by sex;
if first.sex then sex2= sex;
else sex2="";
obs=_n_;
weight_cat= floor(weight/10)*10;
_empty=' ';
run;

proc report data=temp ls=120 ps=40 nowd 
	split="*"
	style(report)=
		[]
	style(header)=
		[just=r]
	style(column)=
		[just=r];

column 
	obs
	sex2
	name
	_empty
	("^S={just=c borderbottomwidth=2 borderbottomcolor=&amp;amp;lightgrey.} Metrics^{super 1}" height weight )
	row_color
;
define obs /display noprint;
define sex2/display  "Sex" style(header)=[just=l borderbottomwidth=2 borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=l];
define name /display "Name" style(header)=[just=l  borderbottomwidth=2 borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=l];
define _empty/' ' style(column)={cellwidth=1%}  style(header)=[just=c vjust=top borderbottomcolor=lightgrey]; 
define height/display  "Height" format =5.1 style(header)=[just=r borderbottomwidth=2 borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=r];
define weight /display "Weight^{super 2}" format =5.0 style(header)=[just=r borderbottomwidth=2 borderbottomcolor=&amp;amp;lightgrey.] style(column)=[just=r ] format=16.;
define row_color  /computed noprint;
  
compute row_color;
		if mod(obs,2)=1 then call define (_row_,"style","style=[background=&amp;amp;verylightgrey.]");
		if weight&amp;lt;=100 then call define ("weight","style","style=[font_weight=bold  background=GREEN ");
		if weight&amp;gt;=100 then call define ("weight","style","style=[font_weight=bold  background=red ");
endcomp;

run;
quit;
ods pdf close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12284i10F98B0B2D7F6721/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="300dpi.png" title="300dpi.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12285i44AA76597A82C737/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="100dpi.png" title="100dpi.png" /&gt;</description>
      <pubDate>Mon, 15 Feb 2016 17:36:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250129#M15252</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2016-02-15T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: The size of superscripts using escapechars is  DPI-dependent in ODS PDF.  Why?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250153#M15256</link>
      <description>HI:&lt;BR /&gt; I think this is more of a question for Tech Support.&lt;BR /&gt;cynthia</description>
      <pubDate>Mon, 15 Feb 2016 19:34:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250153#M15256</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-02-15T19:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: The size of superscripts using escapechars is  DPI-dependent in ODS PDF.  Why?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250232#M15261</link>
      <description>&lt;P&gt;Good for me . Maybe you need try other STYLE or unicode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1896i760D759F5BC4E645/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="x.png" title="x.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf file="/folders/myfolders/report1.pdf" dpi=300 &lt;STRONG&gt;style=sasweb;&lt;/STRONG&gt;&lt;BR /&gt;OPTIONS NODATE NONUMBER;&lt;BR /&gt;ods escapechar = '^'; &lt;BR /&gt;title1 &lt;BR /&gt; j=c "Title" ;&lt;BR /&gt;title2 &lt;BR /&gt; j=c "Subtitle";&lt;BR /&gt;*note : le truc pour les spanned header de colonnes vient de Beyond the Basics: Advanced PROC REPORT Tips and Tricks ";&lt;/P&gt;
&lt;P&gt;footnote1 j=l "Footnote1";&lt;BR /&gt;footnote2 j=l "Footnote2";&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sort data= sashelp.class out=temp; by sex height weight;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;data temp;&lt;BR /&gt;set temp;&lt;BR /&gt;by sex;&lt;BR /&gt;if first.sex then sex2= sex;&lt;BR /&gt;else sex2="";&lt;BR /&gt;obs=_n_;&lt;BR /&gt;weight_cat= floor(weight/10)*10;&lt;BR /&gt;_empty=' ';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc report data=temp ls=120 ps=40 nowd &lt;BR /&gt; split="*"&lt;BR /&gt; style(report)=&lt;BR /&gt; []&lt;BR /&gt; style(header)=&lt;BR /&gt; [just=r]&lt;BR /&gt; style(column)=&lt;BR /&gt; [just=r];&lt;/P&gt;
&lt;P&gt;column &lt;BR /&gt; obs&lt;BR /&gt; sex2&lt;BR /&gt; name&lt;BR /&gt; _empty&lt;BR /&gt; ("^S={just=c borderbottomwidth=2.} Metrics&lt;STRONG&gt;^S={fontsize=80px}^{super 1} ^{unicode 00b2}&lt;/STRONG&gt;" height weight )&lt;BR /&gt; row_color&lt;BR /&gt;;&lt;BR /&gt;define obs /display noprint;&lt;BR /&gt;define sex2/display "Sex" style(header)=[just=l borderbottomwidth=2 borderbottomcolor=lightgrey] style(column)=[just=l];&lt;BR /&gt;define name /display "Name" style(header)=[just=l borderbottomwidth=2 borderbottomcolor=lightgrey] style(column)=[just=l];&lt;BR /&gt;define _empty/' ' style(column)={cellwidth=1%} style(header)=[just=c vjust=top borderbottomcolor=lightgrey]; &lt;BR /&gt;define height/display "Height" format =5.1 style(header)=[just=r borderbottomwidth=2 borderbottomcolor=lightgrey] style(column)=[just=r];&lt;BR /&gt;define weight /display "Weight^{super 2}" format =5.0 style(header)=[just=r borderbottomwidth=2 borderbottomcolor=lightgrey] style(column)=[just=r ] format=16.;&lt;BR /&gt;define row_color /computed noprint;&lt;BR /&gt; &lt;BR /&gt;compute row_color;&lt;BR /&gt; if mod(obs,2)=1 then call define (_row_,"style","style=[background=lightgrey]");&lt;BR /&gt; if weight&amp;lt;=100 then call define ("weight","style","style=[font_weight=bold background=GREEN ");&lt;BR /&gt; if weight&amp;gt;=100 then call define ("weight","style","style=[font_weight=bold background=red ");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;run;&lt;BR /&gt;quit;&lt;BR /&gt;ods pdf close;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 03:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250232#M15261</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-02-16T03:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: The size of superscripts using escapechars is  DPI-dependent in ODS PDF.  Why?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250354#M15263</link>
      <description>&lt;P&gt;Thanks Xia!&lt;/P&gt;
&lt;P&gt;I've tried to code and it looked fine at first. &amp;nbsp;Then I changed the dpi down to 100dpi and the superscript was back to super large. &amp;nbsp;I dont meant to use such a low dpi, but the issue is weird. &amp;nbsp; &amp;nbsp;Meanwhile, here's the reply I got from tech support:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------email 1 ------------------------------------------&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is in regards to tracking number&amp;nbsp;7611714840&amp;nbsp;where you described the following problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;******** &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The size of superscripts using escapechars is DPI-dependent in ODS PDF&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;******** &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am finding a defect on this issue, and have updated that defect with your report of the problem. &amp;nbsp;The current strategy to work around the problem is to use a non-SAS provided font. In the attached code you will see the use of Times here:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;style&lt;/SPAN&gt;&lt;SPAN&gt;(header)=[just=r font_face=&lt;/SPAN&gt;&lt;SPAN&gt;"Times"&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please let me know if this information helps you get the desired results.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---email2--------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I am seeing the problem persist when I use Tahoma, which along with Thorndale AMT (the default font for headers in the PRINTER style used by ODS PDF) is a true type font. I believe Times is a Type 1 / postscript font, so the distinction for the problem may be: When truetype fonts are used, the SUPER function is influenced by the DPI= setting on the ODS PDF statement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;I am sorry to not have better news, but hope the header switch to Times helps you get the desired results. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="cs95e872d0"&gt;&lt;SPAN class="cs91d5a1581"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 15:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/The-size-of-superscripts-using-escapechars-is-DPI-dependent-in/m-p/250354#M15263</guid>
      <dc:creator>morglum</dc:creator>
      <dc:date>2016-02-16T15:29:23Z</dc:date>
    </item>
  </channel>
</rss>

