Data visualization with SAS programming

Remove ODS PDF Bookmarks

Accepted Solution Solved
Reply
Frequent Contributor
Posts: 84
Accepted Solution

Remove ODS PDF Bookmarks

Hello, I am trying to move two tables created by a PROC TABULATE statement onto one page of a PDF.  I was able to do so using startpage = never and ods pdf startpage=now to control the page placement, however it doesn't remove the PDF bookmark for the table I move onto the first page.  The best I can do is set it to be a blank label using ods proclabel ' '.  Is there a way to completely remove this bookmark?  I've tried using PROC DOCUMENT as well but can't seem to get it to work.  Thanks!_pd


Accepted Solutions
Solution
‎08-16-2014 08:55 AM
SAS Super FREQ
Posts: 8,820

Re: Remove ODS PDF Bookmarks

Yes, you are correct. NOTOC was the -first- bookmark control. BOOKMARKGEN, in conjunction with BOOKMARKLIST was introduced later (9.0 or 9.1?) to give you a bit more control than plain NOTOC. For example, you can set BOOKMARKGEN=YES but then choose to hide the bookmark area with BOOKMARKLIST=HIDE. So on the initial open of the PDF file, the viewer will not see the bookmark area, but they can click the bookmark icon to reveal the TOC.

cynthia

View solution in original post


All Replies
SAS Super FREQ
Posts: 8,820

Re: Remove ODS PDF Bookmarks

Hi:  A simple way to completely remove the bookmarks is to use NOTOC or BOOKMARKGEN=NO as options. Would that work for you?

Cynthia

ods listing close;

ods pdf file="C:\Temp\nobookmark.pdf" startpage=no bookmarkgen=no;

. . . your code. . .

ods pdf close;

Frequent Contributor
Posts: 117

Re: Remove ODS PDF Bookmarks

i think you can use NOTOC option in ods pdf.

Solution
‎08-16-2014 08:55 AM
SAS Super FREQ
Posts: 8,820

Re: Remove ODS PDF Bookmarks

Yes, you are correct. NOTOC was the -first- bookmark control. BOOKMARKGEN, in conjunction with BOOKMARKLIST was introduced later (9.0 or 9.1?) to give you a bit more control than plain NOTOC. For example, you can set BOOKMARKGEN=YES but then choose to hide the bookmark area with BOOKMARKLIST=HIDE. So on the initial open of the PDF file, the viewer will not see the bookmark area, but they can click the bookmark icon to reveal the TOC.

cynthia

Frequent Contributor
Posts: 117

Re: Remove ODS PDF Bookmarks

Thanks for the info....gud options to here...i used till now notoc option only...might use options you mentioned in future.

Frequent Contributor
Posts: 84

Re: Remove ODS PDF Bookmarks

BOOKMARKGEN worked perfectly, I want to keep the bookmarks, just suppress the blank ones created by moving the PROC TABULATE output.  I put a BOOKMARKGEN = NO before the PROC TABULATE statement that I move, then a BOOKMARKGEN = YES after it restart the bookmark generation.  Thanks!

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 1110 views
  • 0 likes
  • 3 in conversation