<?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: How to display ODS PDF text in a box frame using ods text? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970399#M46019</link>
    <description>&lt;P&gt;Interesting. You also could get job done by ODS TEXT= :&lt;/P&gt;
&lt;P&gt;NOTE: Do not split the row within ODS TEXT into two or three lines .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods pdf file="c:\temp\example.pdf" style=journal startpage=no;
ods escapechar='^';

ods pdf text="^{style [borderbottomwidth=1px borderbottomcolor=black bordertopwidth=1px bordertopcolor=black borderleftwidth=1px borderleftcolor=black  borderrightwidth=1px borderrightcolor=black  cellpadding=4pt font_face='Times New Roman' font_size=12pt just=center]Early Childhood Education: Laying the Foundation}";

proc report data=sashelp.class nowd;run;

ods pdf close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1752023621355.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108218i690A7FFAE4E3D55E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1752023621355.png" alt="Ksharp_0-1752023621355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jul 2025 01:14:17 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2025-07-09T01:14:17Z</dc:date>
    <item>
      <title>How to display ODS PDF text in a box frame using ods text?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970334#M46013</link>
      <description>&lt;PRE&gt;Hi SAS Community,

I'm generating a PDF report using ODS PDF, and I want to display a heading like:
&lt;/PRE&gt;
&lt;PRE&gt;Early Childhood Education: Laying the Foundation&lt;/PRE&gt;
&lt;PRE&gt;inside a box frame using ods text.

I tried the following code:


ods pdf file="example.pdf" style=journal;
ods escapechar='^';

ods text="^S={borderwidth=1pt bordercolor=black cellpadding=4pt 
          font_face='Times New Roman' font_size=12pt just=center} Early Childhood Education: Laying the Foundation";

ods pdf close;&lt;/PRE&gt;
&lt;P data-start="1046" data-end="1136"&gt;&lt;STRONG data-start="1046" data-end="1081"&gt;Please help me with this query.&lt;/STRONG&gt; Any suggestions or alternate methods are most welcome.&lt;/P&gt;
&lt;P data-start="1138" data-end="1156"&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;I Want Like&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Daily1_0-1751977723528.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108182i8BC86721BA334063/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Daily1_0-1751977723528.png" alt="Daily1_0-1751977723528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="1138" data-end="1156"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 12:29:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970334#M46013</guid>
      <dc:creator>Daily1</dc:creator>
      <dc:date>2025-07-08T12:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display ODS PDF text in a box frame using ods text?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970335#M46014</link>
      <description>&lt;P&gt;I would recommend using PROC ODSTEXT in place of ODS TEXT as shown below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="example.pdf" style=journal;
ods escapechar='^';

*ods text="^S={borderwidth=1pt bordercolor=black cellpadding=4pt 
          font_face='Times New Roman' font_size=12pt just=center} Early Childhood Education: Laying the Foundation";

proc odstext;
 p "Early Childhood Education: Laying the Foundation" / style={borderwidth=1pt bordercolor=black cellpadding=4pt 
          font_face='Times New Roman' font_size=12pt just=center};
run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Jul 2025 12:37:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970335#M46014</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-07-08T12:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to display ODS PDF text in a box frame using ods text?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970399#M46019</link>
      <description>&lt;P&gt;Interesting. You also could get job done by ODS TEXT= :&lt;/P&gt;
&lt;P&gt;NOTE: Do not split the row within ODS TEXT into two or three lines .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ods pdf file="c:\temp\example.pdf" style=journal startpage=no;
ods escapechar='^';

ods pdf text="^{style [borderbottomwidth=1px borderbottomcolor=black bordertopwidth=1px bordertopcolor=black borderleftwidth=1px borderleftcolor=black  borderrightwidth=1px borderrightcolor=black  cellpadding=4pt font_face='Times New Roman' font_size=12pt just=center]Early Childhood Education: Laying the Foundation}";

proc report data=sashelp.class nowd;run;

ods pdf close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1752023621355.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/108218i690A7FFAE4E3D55E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1752023621355.png" alt="Ksharp_0-1752023621355.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jul 2025 01:14:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-display-ODS-PDF-text-in-a-box-frame-using-ods-text/m-p/970399#M46019</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-07-09T01:14:17Z</dc:date>
    </item>
  </channel>
</rss>

