<?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: gap in horizontal line over footer in PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802614#M25657</link>
    <description>&lt;P&gt;ballaw is right . Here is a workaround way :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
 define style styles.gap;
  parent=styles.journal2;

  STYLE SystemFooter/
  outputwidth=100%
  borderbottomcolor=black
  borderbottomwidth=1pt
  font_face="Arial";

  STYLE SystemFooter2/
  outputwidth=100%
  bordertopwidth=0pt
  font_face="Arial";
 end;
run;

title1 
 justify=left "topLeft"
 justify =center "topCenter"
 justify=right "topRight"
;

data one;
 a=1;output;
run;

footnote ' ';
footnote2
 justify=center "bottomCenter"
 justify=right "bottomRight"
;


ods pdf file="c:\temp\centerright.pdf" style=gap;
 proc print data=one;
 run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1647518946512.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69531iD68874ED87AFC261/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1647518946512.png" alt="Ksharp_0-1647518946512.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 12:09:35 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-03-17T12:09:35Z</dc:date>
    <item>
      <title>gap in horizontal line over footer in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802487#M25655</link>
      <description>&lt;P&gt;When writing to a PDF with a modified style, a gap occurs in the horizontal line over the footer.&lt;/P&gt;&lt;P&gt;There is no gap if the footer is only on the left, or the center, or the right, or the left and the right.&lt;/P&gt;&lt;P&gt;If the footer has a left, center, and right component or a left and center component there is a gap in the horizontal line 1/3 of the way across the page.&lt;/P&gt;&lt;P&gt;If the footer has a center and right component there are two gaps in the line, at about 1/3 and 2/3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leftright.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69513i08399580E8DE2E58/image-size/large?v=v2&amp;amp;px=999" role="button" title="leftright.JPG" alt="leftright.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdfgaps.JPG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69512i432D9A23F96FD55F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pdfgaps.JPG" alt="pdfgaps.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These gaps do not occur if one writes to an RTF instead&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code which modifies the journal2 template to include a horizontal line and all the combinations of footer components is included below.&lt;/P&gt;&lt;P&gt;Does anyone know if one can modify the template further to avoid the horizontal line gaps?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc template;
	define style styles.gap;
		parent=styles.journal2;

		STYLE SystemFooter/
		outputwidth=100%
		bordertopcolor=black
		bordertopwidth=1pt
		font_face="Arial";
	end;
run;

title1 
	justify=left "topLeft"
	justify =center "topCenter"
	justify=right "topRight"
;

data one;
	a=1;output;
run;

footnote 
	justify=left "bottomLeft"
;

ods pdf file="left.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

footnote 
	justify=center "bottomCenter"
;

ods pdf file="center.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

footnote 
	justify=right "bottomRight"
;

ods pdf file="right.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

footnote 
	justify=left "bottomLeft"
	justify=right "bottomRight"
;

ods pdf file="leftright.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

footnote 
	justify=left "bottomLeft"
	justify=center "bottomCenter"
;

ods pdf file="leftcenter.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

footnote 
	justify=center "bottomCenter"
	justify=right "bottomRight"
;

ods pdf file="centerright.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

footnote 
	justify=left "bottomLeft"
	justify=center "bottomCenter"
	justify=right "bottomRight"
;

ods pdf file="leftcenterright.pdf" style=gap;
	proc print data=one;
	run;
ods pdf close;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 13:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802487#M25655</guid>
      <dc:creator>jtcowder</dc:creator>
      <dc:date>2022-03-16T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: gap in horizontal line over footer in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802500#M25656</link>
      <description>&lt;P&gt;Something try, based on other ODS bits that do similar, is to add a BORDERLEFTWIDTH=0 and BORDERRIGHTWIDTH=0.&lt;/P&gt;
&lt;P&gt;Sometimes that gap appears because the code creating the ODS output is creating multiple "cells" in a table even though you don't see them and the order seems to draw the vertical (invisible) borders over the horizontal. Setting explicit widths of 0 for the borders sometimes addresses that.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 15:37:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802500#M25656</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-16T15:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: gap in horizontal line over footer in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802614#M25657</link>
      <description>&lt;P&gt;ballaw is right . Here is a workaround way :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
 define style styles.gap;
  parent=styles.journal2;

  STYLE SystemFooter/
  outputwidth=100%
  borderbottomcolor=black
  borderbottomwidth=1pt
  font_face="Arial";

  STYLE SystemFooter2/
  outputwidth=100%
  bordertopwidth=0pt
  font_face="Arial";
 end;
run;

title1 
 justify=left "topLeft"
 justify =center "topCenter"
 justify=right "topRight"
;

data one;
 a=1;output;
run;

footnote ' ';
footnote2
 justify=center "bottomCenter"
 justify=right "bottomRight"
;


ods pdf file="c:\temp\centerright.pdf" style=gap;
 proc print data=one;
 run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1647518946512.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69531iD68874ED87AFC261/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1647518946512.png" alt="Ksharp_0-1647518946512.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 12:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/802614#M25657</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-03-17T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: gap in horizontal line over footer in PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/803337#M25660</link>
      <description>&lt;P&gt;Here is what I heard back from SAS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;This is in regards to your PDF issue in 7613539516.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;This is a known issue with the PDF destination. It happens with the Title too. I would suggest writing a blank Footnote that is just a horizontal border line and use the Journal2 style on the ODS PDF statement. I have included sample code and the resulting output.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;footnote1&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN&gt;'^S={outputwidth=100% borderbottomcolor=black borderbottomwidth=1pt} '&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;footnote2&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;justify&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;left&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN&gt;"bottomLeft"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;justify&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;center&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN&gt;"bottomCenter"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;justify&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;right&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;SPAN&gt;"bottomRight"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both solutions work.&amp;nbsp; Thanks for the input.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 13:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/gap-in-horizontal-line-over-footer-in-PDF/m-p/803337#M25660</guid>
      <dc:creator>jtcowder</dc:creator>
      <dc:date>2022-03-22T13:12:44Z</dc:date>
    </item>
  </channel>
</rss>

