<?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: ODS pdf : truncated graph in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372953#M18908</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks again. I'll try that alright.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jul 2017 09:37:01 GMT</pubDate>
    <dc:creator>MrTh</dc:creator>
    <dc:date>2017-07-04T09:37:01Z</dc:date>
    <item>
      <title>ODS pdf : truncated graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372941#M18904</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;I've been scratching my haed for a while now re: ODS pdf&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;ODS pdf a lot but ths time there is something I can't solve: the grph I output in the pdf is truncated on the left and the right side. I have played a lot with hsize and vsize and it seem to do their job, but the graph inside the defined area appear too big for the area. I was wondering if there was something like 'scaling' the graph to the hsize x vsize area or something clever to correct this.&lt;/P&gt;&lt;P&gt;I have paste the code and attached the output&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; option orientation=portrait leftmargin="1.0cm" rightmargin="1.0cm" topmargin="1.0cm" bottommargin="1.0cm" papersize=A4 formdlim=' ' center ;
 ODS ESCAPECHAR='^'; 
 ods pdf file="C:\temp\test_&amp;amp;datef..pdf" style=statdoc startpage = never notoc ;
 Title1 j=c h=5 f=arialb c=vib "Title1" ; 
 title2 " " ; 
 Title3 j=r h=2 f=arial c=vib "Done &amp;amp;datef." ; 
 title4 " " ; 

 *** page 1 ;
 ods pdf style = statdoc text = "^S={just=l font_weight=light font_size=12pt font_face=Arial foreground=vib}2a. Comment1" ; 
 symbol h= 1 ;
 goptions hsize=10cm vsize=10cm vorigin=15.0cm horigin=5.0cm border autosize=on DEV=SASPRTC ;
 axis1 value=(h=1 f=swiss) label=(h=1.5 f=swissb "PureBreed Only") ;
 axis2 value=(h=1 f=swiss) label=(a=90 h=1.5 f=swissb "PureBreed + CrossBred") ;
 title1 h=2 f=swissb c=black "Graph title" ;
 title3 h=0.7 " " ;
 legend1 value=(h=1 f=swiss) label=(h=1 f=swissb "Country of origin") ; 
 proc gplot data = graph ;
 plot xebv_wwt*ebv_wwt / haxis=axis1 vaxis=axis2 grid nolegend frame ; run ; quit ;

 ods pdf close ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Jul 2017 08:42:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372941#M18904</guid>
      <dc:creator>MrTh</dc:creator>
      <dc:date>2017-07-04T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: ODS pdf : truncated graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372944#M18905</link>
      <description>&lt;P&gt;This page might help, ods graphics / height=...;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_odsgraph_sect034.htm" target="_blank"&gt;https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_odsgraph_sect034.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note however it may not work with the gplot, which is the old graphing system (pre version 9). &amp;nbsp;Would really recommend moving to sgplot/GTL. &amp;nbsp;If you need examples this blog is my goto for any graphing information:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 08:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372944#M18905</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-04T08:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS pdf : truncated graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372949#M18906</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&lt;/P&gt;&lt;P&gt;many thanks for the quick reply - I am battleing here to get SAS Graph ... I am using the BASE STAT package so no SGPLOT for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's really the PDF output that's truncated ; if I print the graph on-screen it looks very OK.&lt;/P&gt;&lt;P&gt;Something to do with maybe defining the printer ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very nice blog you have - I have it bookmarked now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372949#M18906</guid>
      <dc:creator>MrTh</dc:creator>
      <dc:date>2017-07-04T09:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS pdf : truncated graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372952#M18907</link>
      <description>&lt;P&gt;Errm, assuming your using 9.2 or later then you should have access to this already, if your on a previous verison of SAS to that there really isn't any reason not to upgrade, from &amp;gt; 9.0 it was just additions.&lt;/P&gt;
&lt;P&gt;Yes, Sanjay who started that blog really does give good clear examples on pretty mch any graph you can think of, and with overlays and tiling and such like you can get some real nice outputs. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Going back to your problem, you can try:&lt;/P&gt;
&lt;PRE&gt;ods graphics on / width=4.5in  height=3.5in;&lt;/PRE&gt;
&lt;P&gt;It sounds like the image size being created is too big for the PDF age, does it do the same when you output to RTF? &amp;nbsp;Am just thinking that for most graphs I create I goto RTF first, then convert the RTF to PDF.&lt;/P&gt;
&lt;P&gt;Otherwise can't help much more as not used gplot in years.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:32:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372952#M18907</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-07-04T09:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODS pdf : truncated graph</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372953#M18908</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Thanks again. I'll try that alright.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 09:37:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-pdf-truncated-graph/m-p/372953#M18908</guid>
      <dc:creator>MrTh</dc:creator>
      <dc:date>2017-07-04T09:37:01Z</dc:date>
    </item>
  </channel>
</rss>

