<?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: Position of TOC in PDF Output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656399#M196807</link>
    <description>&lt;P&gt;Please refer to documentation here&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0mc4eolqoned0n16oy88mpj0e4g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1kumfmlpx77inn14kzxrn7w0y38" target="_blank"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0mc4eolqoned0n16oy88mpj0e4g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1kumfmlpx77inn14kzxrn7w0y38&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jun 2020 13:21:25 GMT</pubDate>
    <dc:creator>smantha</dc:creator>
    <dc:date>2020-06-10T13:21:25Z</dc:date>
    <item>
      <title>Position of TOC in PDF Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656384#M196800</link>
      <description>&lt;P&gt;We use the&amp;nbsp;&lt;EM&gt;contents=yes&lt;/EM&gt; option in&lt;EM&gt; ods pdf&lt;/EM&gt; to get a printed table of contents in a pdf document, but we don't like that the toc is positioned at the beginning of the pdf file. Is there another technique to get a pdf document starting with a cover sheet, followed by a toc with correct page numbers and then the actual contents.&lt;/P&gt;&lt;PRE&gt;ods pdf file="..." contents=yes  pdftoc = 1 startpage=no;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jun 2020 12:28:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656384#M196800</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-06-10T12:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: Position of TOC in PDF Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656399#M196807</link>
      <description>&lt;P&gt;Please refer to documentation here&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0mc4eolqoned0n16oy88mpj0e4g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1kumfmlpx77inn14kzxrn7w0y38" target="_blank"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=n0mc4eolqoned0n16oy88mpj0e4g.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#n1kumfmlpx77inn14kzxrn7w0y38&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 13:21:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656399#M196807</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-10T13:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Position of TOC in PDF Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656436#M196820</link>
      <description>&lt;P&gt;Thank you for your kind answer. I know the documentation for "ods pdf", but I see no possibility to place the TOC behind a cover sheet. That's why I asked for another technique ...&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 14:51:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656436#M196820</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-06-10T14:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Position of TOC in PDF Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656500#M196840</link>
      <description>&lt;P&gt;The closes I came to your requirement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;   /* Not needed if using SAS Studio */
proc template;
   define style Styles.CustomTitle;
   parent=Styles.pearl;
      class ContentTitle from ContentTitle /
              pretext='My Customized Title';
   end;
run;


ods pdf file="C:\Users\mantsu01\Documents\CustomTOC.pdf";
options nodate nonumber;
ods proclabel "This is the cover page";

data new;
header='Created by SM on 06-10-2020';
label header = 'Title of my project';
run;

proc print noobs labels;
*where not missing(header);
run;

options number;

options pageno=1;
ods proclabel "Crosstab of SASHELP.CARS";
proc freq data=sashelp.cars;
   tables origin*type / contents="";
run;

ods proclabel "All variables: SASHELP.CARS";
proc print data=sashelp.cars contents="Second level";
run;


ods pdf close;   /* Not needed if using SAS Studio */
ods html;

proc template;
delete Styles.CustomTitle;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Jun 2020 18:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/656500#M196840</guid>
      <dc:creator>smantha</dc:creator>
      <dc:date>2020-06-10T18:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Position of TOC in PDF Output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/659066#M197475</link>
      <description>&lt;P&gt;Thank you, Smantha, for the time you have invested. I recognize that you were able to adjust the page numbering and I have learned something. But, maybe I was not clear, that my main problem ist the TOC appearing at the start of the document which in my context is very ununusal.&amp;nbsp; I have given up and accepted that that SAS currently does not provide an easy way to locate the TOC in an pdf document properly.&lt;/P&gt;&lt;DIV class="sas-author-username"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Jun 2020 17:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Position-of-TOC-in-PDF-Output/m-p/659066#M197475</guid>
      <dc:creator>Sasuser52</dc:creator>
      <dc:date>2020-06-15T17:45:02Z</dc:date>
    </item>
  </channel>
</rss>

