The SAS Output Delivery System and reporting techniques

Printing a table of contents in a PDF file

Reply
N/A
Posts: 0

Printing a table of contents in a PDF file

I have created a PDF, using a number of Proc reports . Using proclabel, I have created a TOC with all of the correct titles but I also want to print the TOC at the begining of the report, with page nos, as it is normally distributed as a printed item.

Can anyone help?
SAS Super FREQ
Posts: 8,743

Re: Printing a table of contents in a PDF file

hi:
In SAS 9, you have the CONTENTS= option:
[pre]
ods pdf file='xyz.pdf' contents=yes;
** proc report 1;
** proc report 2;
** proc report 3;
ods pdf close;
[/pre]

cynthia
N/A
Posts: 0

Re: Printing a table of contents in a PDF file

This gives a TOC with links on the electronic document but it does not form part of the doc when it is printed.
SAS Super FREQ
Posts: 8,743

Re: Printing a table of contents in a PDF file

Hi:
That is very odd. When I run the code below, and then print the resulting document, I do -get- a separate TOC as the first page when I print -- in both 9.1 and 9.2.

I suggest you contact Tech Support on this issue.

cynthia
[pre]
ods pdf file='c:\temp\xyz.pdf' contents=yes;

proc report data=sashelp.class (obs=5) nowd;
run;

proc report data=sashelp.class(obs=5) nowd;
run;

proc report data=sashelp.shoes(obs=50) nowd;
run;

proc report data=sashelp.class(obs=5) nowd;
run;

ods pdf close;
[/pre]
N/A
Posts: 0

Re: Printing a table of contents in a PDF file

Thanks for that - I had the option in the wrong place...
Ask a Question
Discussion stats
  • 4 replies
  • 143 views
  • 0 likes
  • 2 in conversation