<?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: Question about PDF bookmarks create by RWI in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/671972#M24292</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I noticed that paper. I can modify the bookmark using js, ghostscript or other tools after the PDF is created. However, I want to find if it can be down in SAS itself other than through third party solution because my PDF generated through SAS intrnet.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 00:10:03 GMT</pubDate>
    <dc:creator>cxterm</dc:creator>
    <dc:date>2020-07-24T00:10:03Z</dc:date>
    <item>
      <title>Question about PDF bookmarks create by RWI</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/670715#M24277</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have three questions about the PDF bookmarks generated by RWI table.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;if there are multiple tables in one data _null_ step, is it possible not show selected table in bookmark?&lt;/LI&gt;&lt;LI&gt;Could I combine the tables in different data _null_ step as second level under one bookmark?&lt;/LI&gt;&lt;LI&gt;Is it possible add a top level bookmark over all bookmarks of data _null_ step? in&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I created a sample below. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file="test.pdf";
title1 j=c "Sample of Class";
ods proclabel="Bookmark 1";
proc sort data=sashelp.class out=class;
	by sex;
run;
data _null_;
	set class end=eof;
	by sex;
	if _N_ = 1 then do;
		dcl odsout o();		
	end;
	if first.sex then do;
		if SEX = 'F' then do;
			o.table_start(label: 'Sex=F, keep it in bookmark');
		end;
		else do;
			o.table_start(label: "Sex=M, don't show in bookmark");
		end;
	end;
	o.row_start();
		o.format_cell(data: Name ||' ' ||SEX);
	o.row_end();
	if last.sex then do;
		o.table_end();
	end;
	if eof then do;
		o.table_end();
	end;
run;
ods proclabel="Can I move the following bookmarks under Bookmark 1?";
data _null_;
	set class end=eof;
	by sex;
	if _N_ = 1 then do;
		dcl odsout o();		
	end;
	if first.sex then do;
		if SEX = 'F' then do;
			o.table_start(label: 'Sex=F, keep it in bookmark');
		end;
		else do;
			o.table_start(label: "Sex=M, don't show in bookmark");
		end;
	end;
	o.row_start();
		o.format_cell(data: Name ||' ' ||SEX);
	o.row_end();
	if last.sex then do;
		o.table_end();
	end;
	if eof then do;
		o.table_end();
	end;
run;
ods pdf close; 
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The original bookmark of sample as&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="The original sample bookmark" style="width: 398px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47350iBA6F1D4AA3F3A424/image-dimensions/398x298?v=v2" width="398" height="298" role="button" title="bookmark 0.png" alt="The original sample bookmark" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;The original sample bookmark&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The bookmarks sample if the question 1 can be solved&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bookmark 1.png" style="width: 380px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47351i74AF1FB5BC2FA27F/image-dimensions/380x227?v=v2" width="380" height="227" role="button" title="bookmark 1.png" alt="bookmark 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The sample bookmark after question 2 be solved.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bookmark 2.png" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47352iBF437295B13F550C/image-dimensions/375x208?v=v2" width="375" height="208" role="button" title="bookmark 2.png" alt="bookmark 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And finally the bookmark looks like&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bookmark 3.png" style="width: 375px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47353i0473B02B71CEB667/image-dimensions/375x273?v=v2" width="375" height="273" role="button" title="bookmark 3.png" alt="bookmark 3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 16:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/670715#M24277</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2020-07-20T16:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question about PDF bookmarks create by RWI</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/671878#M24290</link>
      <description>&lt;P&gt;Have you tried using&amp;nbsp;Java Script functions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/wuss/2006/data_presentation_and_business_intelligence/DPR-Karunasundera.pdf" target="_blank"&gt;https://www.lexjansen.com/wuss/2006/data_presentation_and_business_intelligence/DPR-Karunasundera.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 16:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/671878#M24290</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2020-07-23T16:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Question about PDF bookmarks create by RWI</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/671972#M24292</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I noticed that paper. I can modify the bookmark using js, ghostscript or other tools after the PDF is created. However, I want to find if it can be down in SAS itself other than through third party solution because my PDF generated through SAS intrnet.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 00:10:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Question-about-PDF-bookmarks-create-by-RWI/m-p/671972#M24292</guid>
      <dc:creator>cxterm</dc:creator>
      <dc:date>2020-07-24T00:10:03Z</dc:date>
    </item>
  </channel>
</rss>

