<?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 Export gchart pie graph as pdf in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732177#M228151</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wish to export the pie chart I created as pdf. I used the following code.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;goptions reset=all border cback=white
         htitle=5pt gsfname=grafout gsfmode=replace device=pdf;
filename  grafout 'mypath\mydata.pdf';

legend1 label=none
        shape=bar(4,1.5)
        position=(top left)
        offset=(5,)
        across=4
        mode=share;

proc gchart data=mydata ;
    pie var1 / sumvar=var2
	            noheading
                     coutline=black
				other=0
				value= inside
			         angle=30
				ascending
				percent= arrow
				jstyle
			      legend=legend1;
			
run;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the above code, it says the data has been written to:&amp;nbsp; \\AppData\Local\Temp\SAS Temporary&amp;nbsp;Files\_TD5700_mm-b4_\gchart.png.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help?&lt;/P&gt;</description>
    <pubDate>Thu, 08 Apr 2021 10:14:27 GMT</pubDate>
    <dc:creator>Anita_n</dc:creator>
    <dc:date>2021-04-08T10:14:27Z</dc:date>
    <item>
      <title>Export gchart pie graph as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732177#M228151</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wish to export the pie chart I created as pdf. I used the following code.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;goptions reset=all border cback=white
         htitle=5pt gsfname=grafout gsfmode=replace device=pdf;
filename  grafout 'mypath\mydata.pdf';

legend1 label=none
        shape=bar(4,1.5)
        position=(top left)
        offset=(5,)
        across=4
        mode=share;

proc gchart data=mydata ;
    pie var1 / sumvar=var2
	            noheading
                     coutline=black
				other=0
				value= inside
			         angle=30
				ascending
				percent= arrow
				jstyle
			      legend=legend1;
			
run;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the above code, it says the data has been written to:&amp;nbsp; \\AppData\Local\Temp\SAS Temporary&amp;nbsp;Files\_TD5700_mm-b4_\gchart.png.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 10:14:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732177#M228151</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-08T10:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Export gchart pie graph as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732189#M228155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My SAS 9.4 under Windows does produce the PDF file with your code, but this is because I use ODS Listing as the default destination and not HTML. I can reproduce the issue (only PNG is created and a warning " Unsupported device 'PDF' for HTML destination. ..." is written to the log)&amp;nbsp;if I change the settings in Tools&amp;nbsp;→ Options&amp;nbsp;→ Preferences... → Results from "Create Listing" (only) to "Create HTML" (only).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you can either tick the check box "Create listing" in the Preferences window and deselect "Create HTML" or submit&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;to close the HTML and possibly other ODS destinations and open the Listing destination.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 11:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732189#M228155</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-04-08T11:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export gchart pie graph as pdf</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732195#M228160</link>
      <description>&lt;P&gt;Okay, thanks for that. I will try that&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 12:16:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-gchart-pie-graph-as-pdf/m-p/732195#M228160</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-08T12:16:18Z</dc:date>
    </item>
  </channel>
</rss>

