BookmarkSubscribeRSS Feed
Sir_Highbury
Quartz | Level 8

Dear expert,

 

I would like to add the table of contents to the pdf that I am generating but changing the option contents=yes, destroy my file, here my code:

 

ods pdf file='W:\03-OUT_outputfolder\Actuarial_monitoring_report_&date..pdf'
contents=yes
startpage=yes
COLUMNS=2
pdftoc=3 /* controls the table of contents node expansion of a PDF file */
uniform
subject="123"
author="abc"
title="def"
style=plateau /*SASdocprinter SASdocprinter journal minimal Plateau*/;
goptions htitle=10pt ftext="Helvetica/bold";

 

any hints? Since it is a quited big pdf (25 pages) it would be nice to have a table of contents. As user of the dear old and efficient Latek I was expecting something similar but the pdf building function of SAS look a bit weird, shaping saveral tables is not so straight forward.

Thanks in adcvance for your support,

SH

2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Creating PDF's with nice bookmarks, TOC and such like has never really worked for me in SAS, even with the newer attempts - proc document and such like.  What I generally do is output each to RTF, then have a script create a PDF from them, then you can specify various things on creation - there are tools out there that can help building these.  Alternatively you could use Javascript in ADobe to build your document, haven't tried it myself, was something I have been meaning to look at for a while now.  

Sir_Highbury
Quartz | Level 8

well which is the purpose of rolling out a functionality, e.g. ods pdf, that does not work as expected? 🙂 Some bugs are acceptable but since we pay for the licence and the functionality is there, even if it is user unfriendly (not the first thing) it should somehow work properly.

SAS is not a weird startup aiming to survive month by month, I guess they developed the functionalit with a minimum quality on it. 

Latek is for free and as old as my granfather and does its job perfectly, I expect from SAS something even better.

I hope some other use can help...

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 942 views
  • 0 likes
  • 2 in conversation