<?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 Need to remove border from ODS PDF in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672075#M20298</link>
    <description>&lt;P&gt;I need to remove the light gray border around the graph in the output PDF. It seems to change based on the style attribute borderwidth in the ods region statement, but I can't find a way to remove it entirely.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style Styles.Custom;
parent = Styles.default; 
class GraphAxisLines/color=black;
class GraphBackground/color=white;
end;
run;

ods _all_ close;
options nonumber nodate orientation=landscape papersize=letter nocenter
	leftmargin=.5in rightmargin=.5in topmargin=.5in bottommargin=.5in;
ods pdf file="E:/SAS figures/fig1_pdf.pdf" dpi=300 notoc;
ods layout absolute description='Primary substance use at admission, 2007-2017';
ods noptitle;
ods pdf style=Custom;]
ods region x=0in y=0in width=10in style=[borderwidth=1 bordercolor=white];
ods graphics on/noborder height=7.5in width=10in scale=on;
title;

proc sgplot data=prim_sub_use noborder nowall;
series x=Year y=Alcohol/markers markerattrs=(symbol=CircleFilled color='#0060A9' size=12) lineattrs=(color='#0060A9' thickness=3);
series x=Year y=Opiates/markers markerattrs=(symbol=TriangleDownFilled size=12 color='#ed1c24') lineattrs=(color='#ed1c24' thickness=3 pattern=solid);
series x=Year y=Cocaine/markers markerattrs=(symbol=SquareFilled color='#ffc222' size=12) lineattrs=(color='#ffc222' thickness=3 pattern=solid);
series x=Year y=Marijuana/markers markerattrs=(symbol=DiamondFilled color='#64c069' size=12) lineattrs=(color='#64c069' thickness=3 pattern=solid) legendlabel="Marijuana/hashish";
series x=Year y=Methamphetamine_amphetamines/markers markerattrs=(symbol=TriangleFilled size=12 color='#00a2e5') lineattrs=(color='#00a2e5' thickness=3 pattern=solid);
yaxis label='Percent of all admissions aged 12 years and older' VALUES = (0 TO 50 BY 10) offsetmax=0 offsetmin=0 valueattrs=(family=Arial size=8);
xaxis label='Admission Year' VALUES = (2007 TO 2017 BY 1) display=(nolabel noticks) valueattrs=(family=Arial size=8);
keylegend/noborder linelength=30 fillaspect=golden valueattrs=(family=Arial size=8);
run;

ods graphics off;
ods layout end;
ods pdf close;
ods _ALL_ CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 12:24:43 GMT</pubDate>
    <dc:creator>martyvd</dc:creator>
    <dc:date>2020-07-24T12:24:43Z</dc:date>
    <item>
      <title>Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672075#M20298</link>
      <description>&lt;P&gt;I need to remove the light gray border around the graph in the output PDF. It seems to change based on the style attribute borderwidth in the ods region statement, but I can't find a way to remove it entirely.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style Styles.Custom;
parent = Styles.default; 
class GraphAxisLines/color=black;
class GraphBackground/color=white;
end;
run;

ods _all_ close;
options nonumber nodate orientation=landscape papersize=letter nocenter
	leftmargin=.5in rightmargin=.5in topmargin=.5in bottommargin=.5in;
ods pdf file="E:/SAS figures/fig1_pdf.pdf" dpi=300 notoc;
ods layout absolute description='Primary substance use at admission, 2007-2017';
ods noptitle;
ods pdf style=Custom;]
ods region x=0in y=0in width=10in style=[borderwidth=1 bordercolor=white];
ods graphics on/noborder height=7.5in width=10in scale=on;
title;

proc sgplot data=prim_sub_use noborder nowall;
series x=Year y=Alcohol/markers markerattrs=(symbol=CircleFilled color='#0060A9' size=12) lineattrs=(color='#0060A9' thickness=3);
series x=Year y=Opiates/markers markerattrs=(symbol=TriangleDownFilled size=12 color='#ed1c24') lineattrs=(color='#ed1c24' thickness=3 pattern=solid);
series x=Year y=Cocaine/markers markerattrs=(symbol=SquareFilled color='#ffc222' size=12) lineattrs=(color='#ffc222' thickness=3 pattern=solid);
series x=Year y=Marijuana/markers markerattrs=(symbol=DiamondFilled color='#64c069' size=12) lineattrs=(color='#64c069' thickness=3 pattern=solid) legendlabel="Marijuana/hashish";
series x=Year y=Methamphetamine_amphetamines/markers markerattrs=(symbol=TriangleFilled size=12 color='#00a2e5') lineattrs=(color='#00a2e5' thickness=3 pattern=solid);
yaxis label='Percent of all admissions aged 12 years and older' VALUES = (0 TO 50 BY 10) offsetmax=0 offsetmin=0 valueattrs=(family=Arial size=8);
xaxis label='Admission Year' VALUES = (2007 TO 2017 BY 1) display=(nolabel noticks) valueattrs=(family=Arial size=8);
keylegend/noborder linelength=30 fillaspect=golden valueattrs=(family=Arial size=8);
run;

ods graphics off;
ods layout end;
ods pdf close;
ods _ALL_ CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 12:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672075#M20298</guid>
      <dc:creator>martyvd</dc:creator>
      <dc:date>2020-07-24T12:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672665#M20305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I ran this code that I gave you last week I did not get the border on my side (running SODA) , perhaps you have an older SAS?&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps try this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/kb/48/138.html" target="_blank" rel="noopener"&gt;https://support.sas.com/kb/48/138.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672665#M20305</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-07-27T18:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672681#M20306</link>
      <description>I am using SAS 9.4. I tried the code from the link and the line is still visible.</description>
      <pubDate>Mon, 27 Jul 2020 20:16:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672681#M20306</guid>
      <dc:creator>martyvd</dc:creator>
      <dc:date>2020-07-27T20:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672683#M20307</link>
      <description>I did not output as html though as I need a PDF.</description>
      <pubDate>Mon, 27 Jul 2020 20:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672683#M20307</guid>
      <dc:creator>martyvd</dc:creator>
      <dc:date>2020-07-27T20:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672694#M20308</link>
      <description>&lt;P&gt;I am also talikng about pdf, see att directly from the last week's code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me which version you are running (on SODA it's 9.4m6)&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc setinit; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jul 2020 21:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672694#M20308</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-07-27T21:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672695#M20309</link>
      <description>&lt;P&gt;could you try this, replace the ods layout absolute line with the following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* ods layout absolute; */
ods layout start style={bordercolor=white borderstyle=solid borderwidth=1pt};&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Jul 2020 21:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672695#M20309</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-07-27T21:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672856#M20316</link>
      <description>There is still an extremely faint border when using that code.&lt;BR /&gt;&lt;BR /&gt;Current version: 9.04.01M6P110718&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672856#M20316</guid>
      <dc:creator>martyvd</dc:creator>
      <dc:date>2020-07-28T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Need to remove border from ODS PDF</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672865#M20317</link>
      <description>&lt;P&gt;Try without the Proc Template?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Need-to-remove-border-from-ODS-PDF/m-p/672865#M20317</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2020-07-28T15:02:00Z</dc:date>
    </item>
  </channel>
</rss>

