<?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 Title and Footer are Truncated on PDF output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footer-are-Truncated-on-PDF-output/m-p/701949#M214979</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the Proc Template I used in SAS 9.3 seems not work on SAS 9.4. The right side of titles and footers in PDF output would be truncated.&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style Styles.mystyle;
parent = styles.Printer;
replace fonts /
'TitleFont2' = ("Courier New",9pt,Bold Italic)
'TitleFont' = ("Courier New",9pt,Bold Italic)
'StrongFont' = ("Courier New",9pt,Bold)
'EmphasisFont' = ("Courier New",9pt, Bold)
'FixedEmphasisFont' = ("Courier New",9pt,Bold)
'FixedStrongFont' = ("Courier New",9pt,Bold)
'FixedHeadingFont' = ("Courier New",9pt,Bold)
'BatchFixedFont' = ("Courier New",9pt,Bold)
'FixedFont' = ("Courier New",9pt,Bold)
'headingEmphasisFont' = ("Courier New",9pt,Bold )
'headingFont' = ("Courier New",9pt,Bold)
'docFont' = ("Courier New",9pt)
'footFont' =  ("Courier New",9pt,Bold Italic);
replace GraphFonts /
'GraphDataFont' = ("Courier New",9pt)
'GraphValueFont' = ("Courier New",9pt)
'GraphLabelFont' = ("Courier New",9pt,Bold)
'GraphFootnoteFont' = ("Courier New",9pt,Bold)
'GraphTitleFont' = ("Courier New",9pt,Bold);
replace color_list /
'link' = blue
'bgH' = Lightgrey
'fg' = black
'bg' = _undef_;


replace Table from Output /
background = _undef_
frame = hsides
rules = groups
vjust = M
cellpadding = 1pt
cellspacing = 0.25pt
borderwidth = 0.25pt;
replace SystemFooter from TitlesAndFooters /
just = L
font = fonts('docFont');
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber papersize=A4 topmargin="0.75in"  leftmargin="0.375in" bottommargin="0.375in" rightmargin="0.375in" orientation=landscape;

ods escapechar='~'; footnote3 j=l;footnote4 j=l;
ods proclabel="Report: xxx";
ods document name=WORK.CONTENTS(write);

title1 j=l "~S={leftmargin=0in} Study: xxx"  j=r "Report: xxx, Page ~{thispage} of ~{lastpage}";
title2 j=r "~S={leftmargin=0in} Date: &amp;amp;sysdate9.";
title3 " ";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the attached table, you can find that the right side of title1 and footnote are truncated, but title2 is shown correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have idea on this?&lt;/P&gt;&lt;P&gt;looking forward for any suggestions!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 02:51:12 GMT</pubDate>
    <dc:creator>JohnChen_TW</dc:creator>
    <dc:date>2020-11-27T02:51:12Z</dc:date>
    <item>
      <title>Title and Footer are Truncated on PDF output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footer-are-Truncated-on-PDF-output/m-p/701949#M214979</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found the Proc Template I used in SAS 9.3 seems not work on SAS 9.4. The right side of titles and footers in PDF output would be truncated.&lt;/P&gt;&lt;P&gt;Below is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style Styles.mystyle;
parent = styles.Printer;
replace fonts /
'TitleFont2' = ("Courier New",9pt,Bold Italic)
'TitleFont' = ("Courier New",9pt,Bold Italic)
'StrongFont' = ("Courier New",9pt,Bold)
'EmphasisFont' = ("Courier New",9pt, Bold)
'FixedEmphasisFont' = ("Courier New",9pt,Bold)
'FixedStrongFont' = ("Courier New",9pt,Bold)
'FixedHeadingFont' = ("Courier New",9pt,Bold)
'BatchFixedFont' = ("Courier New",9pt,Bold)
'FixedFont' = ("Courier New",9pt,Bold)
'headingEmphasisFont' = ("Courier New",9pt,Bold )
'headingFont' = ("Courier New",9pt,Bold)
'docFont' = ("Courier New",9pt)
'footFont' =  ("Courier New",9pt,Bold Italic);
replace GraphFonts /
'GraphDataFont' = ("Courier New",9pt)
'GraphValueFont' = ("Courier New",9pt)
'GraphLabelFont' = ("Courier New",9pt,Bold)
'GraphFootnoteFont' = ("Courier New",9pt,Bold)
'GraphTitleFont' = ("Courier New",9pt,Bold);
replace color_list /
'link' = blue
'bgH' = Lightgrey
'fg' = black
'bg' = _undef_;


replace Table from Output /
background = _undef_
frame = hsides
rules = groups
vjust = M
cellpadding = 1pt
cellspacing = 0.25pt
borderwidth = 0.25pt;
replace SystemFooter from TitlesAndFooters /
just = L
font = fonts('docFont');
end;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options nodate nonumber papersize=A4 topmargin="0.75in"  leftmargin="0.375in" bottommargin="0.375in" rightmargin="0.375in" orientation=landscape;

ods escapechar='~'; footnote3 j=l;footnote4 j=l;
ods proclabel="Report: xxx";
ods document name=WORK.CONTENTS(write);

title1 j=l "~S={leftmargin=0in} Study: xxx"  j=r "Report: xxx, Page ~{thispage} of ~{lastpage}";
title2 j=r "~S={leftmargin=0in} Date: &amp;amp;sysdate9.";
title3 " ";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the attached table, you can find that the right side of title1 and footnote are truncated, but title2 is shown correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have idea on this?&lt;/P&gt;&lt;P&gt;looking forward for any suggestions!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 02:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footer-are-Truncated-on-PDF-output/m-p/701949#M214979</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2020-11-27T02:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Title and Footer are Truncated on PDF output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Title-and-Footer-are-Truncated-on-PDF-output/m-p/702001#M214996</link>
      <description>&lt;P&gt;I used your code and ran a test on SAS OnDemand for Academics (ODA).&lt;BR /&gt;I don't see the issue there. Can you try to run your code on ODA and verify the results?&lt;/P&gt;
&lt;P&gt;See attached pdf.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best regards, Jos&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 12:14:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Title-and-Footer-are-Truncated-on-PDF-output/m-p/702001#M214996</guid>
      <dc:creator>JosvanderVelden</dc:creator>
      <dc:date>2020-11-27T12:14:09Z</dc:date>
    </item>
  </channel>
</rss>

