BookmarkSubscribeRSS Feed
sjb1
Fluorite | Level 6

Hello,

 

Is there any way to control the style attributes of the text of a PDF bookmark produced by SAS? 

 

I've posted a trivial example that hopefully gets at what I want to do, please let me know if a full example would be helpful.

 

ods escapechar="^";

PROC DOCUMENT name=MyDoc;
    make \MyDoc\First_Level;
    setlabel \MyDoc\First_Level "^{style [font_weight=bold] Custom Text}"; /* Define the PDF bookmark label and attempt to make it Bold */
    /* place output here */
    doc close;
RUN;
QUIT;

ods pdf file="MyPDF.pdf";
PROC DOCUMENT name=MyDoc;
    replay;
RUN;
QUIT;
ods pdf close;

Thanks!

2 REPLIES 2
JosvanderVelden
SAS Super FREQ
If you google for bookmark and style-template you'll find a lot of info. For instance this: http://www8.sas.com/scholars/05/PREVIOUS/2001_200.4/2004_MOR/Proceed/_2003/DataPresentation/DP05-DeL...

Is that what you are looking for?

Best regards, Jos
sjb1
Fluorite | Level 6

Thanks for the resources, but this is not quite what I'm looking for. I want to control the attributes of the PDF bookmarks. For instance, I want to make some bold. 

 

I've attached a picture of what I want. I can make the text bold using a PDF editing tool, but I'm curious if SAS has this capability.

 

 

 

Untitled.png

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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