<?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: sending graphics output from PROC SGRENDER to PDF file in SAS 9.3 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173461#M6409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can appreciate that the macro -- which is awesome, btw -- might have issues outside 'average' applications. I overrode the 100 obs, for example. But in fact the macro output was perfect&amp;nbsp; (exactly what I wanted) -- but only in the listing image output written to pdf. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused why the listing output written to pdf (#1) and the ods output written to pdf (#2) look so different -- and wondering if there's anything I can do to make #2 look like #1 (aside from a piecemeal approach creating a series of graphs to try and approx for #2 what I can achieve with a single graph for #1). The only drawback for me with #1 is that I need a pdf file for each image I create; but, o/w, the graph is rendered well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 22:25:56 GMT</pubDate>
    <dc:creator>Joan</dc:creator>
    <dc:date>2013-12-13T22:25:56Z</dc:date>
    <item>
      <title>sending graphics output from PROC SGRENDER to PDF file in SAS 9.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173457#M6405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;I am creating a graph using proc sgrender in SAS 9.3. The graph is a forest plot created using a (slightly modified) v. of this macro:&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;A href="http://support.sas.com/kb/43/addl/fusion_43855_1_forestmacro.sas.txt" style="color: #1155cc;"&gt;http://support.sas.com/kb/43/addl/fusion_43855_1_forestmacro.sas.txt&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;I am outputting this (very tall) graph to pdf destination. When I use approach #1 below, the graph looks great. In approach #2, the graph looks bad. The default outputfmt in approach #2 is png, but the graph still looks the same (bad) if I set the outputfmt to pdf.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;I would like to use approach #2, so I can send multiple outputs to pdf file (rather than one pdf file per graph with approach #1). But I haven't been able to figure out how to get the graph to look right using approach #2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Thank you SAS community for any suggestions you may have.&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;BR /&gt;Approach #1 -- pdf file can have one output only (but graph looks good)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;ods graphics / reset outputfmt=pdf imagename="ex1" border=off;&lt;/P&gt;&lt;P&gt;ods listing image_dpi=300 gpath="C:\graphs";&lt;/P&gt;&lt;P&gt;proc sgrender data=_forest template=ForestMacro;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;Approach #2 -- pdf file can have multiple outputs (but graph looks terrible)&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;ods graphics / reset border=off;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial; font-size: small;"&gt;ods pdf file="C:\graphs\ex3.pdf" dpi=300;&lt;/P&gt;&lt;P&gt;proc sgrender data=_forest template=ForestMacro;&lt;/P&gt;&lt;P&gt;title;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 19:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173457#M6405</guid>
      <dc:creator>Joan</dc:creator>
      <dc:date>2013-12-13T19:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: sending graphics output from PROC SGRENDER to PDF file in SAS 9.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173458#M6406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm confused.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outputfmt=pdf should give you a vector image, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ods graphics/reset outputfmt=pdf border=off;&lt;/P&gt;&lt;P&gt;ods pdf file="..." ;&lt;/P&gt;&lt;P&gt;proc sgrender..;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sgrender..;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't give you a bunch of nice looking vector images in the pdf, would check the log to see if it says anything about having given you an image output when you asked for a vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 20:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173458#M6406</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2013-12-13T20:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: sending graphics output from PROC SGRENDER to PDF file in SAS 9.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173459#M6407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Quentin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I specify outputfmt=pdf in the 2nd approach the listing image output written to pdf looks great (exactly as in appoach #1, which makes sense since the code is now the same). But the ods pdf output still looks bad (exactly as before when I did not specify the outputfmt and the default outputfmt was png).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if in Approach 2 I changed ods graphics statement to:&lt;/P&gt;&lt;P&gt;ods graphics / reset outputfmt=pdf imagename="sg1" border=off;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the sg1.pdf looks good but the ods pdf output (ex3.pdf) looks the same as before. I do not get any messages about vector v. image output in the log. I know that vector graphics are not supported for all types of graphs but I don't know if that is an issue here. I am mystified why the listing pdf output is good (when the outputfmt=pdf) but the ods pdf output is not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 21:05:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173459#M6407</guid>
      <dc:creator>Joan</dc:creator>
      <dc:date>2013-12-13T21:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: sending graphics output from PROC SGRENDER to PDF file in SAS 9.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173460#M6408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The macro was tested for average test cases.&amp;nbsp; If you have a very tall graph, you may need to customize the macro.&amp;nbsp; Break your data into smaller pieces.&amp;nbsp; If you are running SAS 9.2, you will get an image embedded in the PDF.&amp;nbsp; With SAS 9.3 onwards, you will get a real vector graph in most cases.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 21:51:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173460#M6408</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-12-13T21:51:57Z</dc:date>
    </item>
    <item>
      <title>Re: sending graphics output from PROC SGRENDER to PDF file in SAS 9.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173461#M6409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can appreciate that the macro -- which is awesome, btw -- might have issues outside 'average' applications. I overrode the 100 obs, for example. But in fact the macro output was perfect&amp;nbsp; (exactly what I wanted) -- but only in the listing image output written to pdf. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm confused why the listing output written to pdf (#1) and the ods output written to pdf (#2) look so different -- and wondering if there's anything I can do to make #2 look like #1 (aside from a piecemeal approach creating a series of graphs to try and approx for #2 what I can achieve with a single graph for #1). The only drawback for me with #1 is that I need a pdf file for each image I create; but, o/w, the graph is rendered well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 22:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173461#M6409</guid>
      <dc:creator>Joan</dc:creator>
      <dc:date>2013-12-13T22:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: sending graphics output from PROC SGRENDER to PDF file in SAS 9.3</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173462#M6410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is always easier to help if the full program (with data) is attached so we can run it and debug.&amp;nbsp; The styles for PDF and Listing are different.&amp;nbsp; Also, the macro tries to compute a size for the output graph, which is set in the BEGINGRAPH statement.&amp;nbsp; My guess is the PDF is trying to squeeze it on one page.&amp;nbsp; Not sure how PDF deals with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 23:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/sending-graphics-output-from-PROC-SGRENDER-to-PDF-file-in-SAS-9/m-p/173462#M6410</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-12-13T23:05:05Z</dc:date>
    </item>
  </channel>
</rss>

