<?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 and GTL (Graphic Template Language) Outputs Shrinking in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/236468#M8583</link>
    <description>&lt;P&gt;I ran your code with SASHELP.CLASS using x=weight and y=age and could not reproduce the problem&amp;nbsp;you are&amp;nbsp;seeing. &amp;nbsp;Both PDF and RTF of the right size. &amp;nbsp;I suggest you can remove IMAGEFMT=PNG from the code to get scalable graphs.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2015 17:49:38 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2015-11-25T17:49:38Z</dc:date>
    <item>
      <title>ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234167#M8497</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I am producing a figure using GTL within SAS EG on SAS 9.4, now the code works perfectly, and if i produce an RTF it looks perfect. Now when I produce the PDF file for some reason the graphic output shrinks.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options leftmargin = 1.54cm&lt;BR /&gt;        rightmargin = 1.54cm&lt;BR /&gt;        bottommargin = 2.13cm&lt;BR /&gt;        topmargin = 1.54cm;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc template;&lt;BR /&gt; define statgraph lineplot_template;&lt;BR /&gt;   begingraph / border = FALSE&lt;BR /&gt;                designwidth = 800&lt;BR /&gt;                designheight = 300;&lt;BR /&gt;     layout overlay /&lt;BR /&gt;                     xaxisopts = (name = "x_axis"&lt;BR /&gt;                     label = "X Axis Label"&lt;BR /&gt;                     labelattrs = (color = BLACK family = "COURIER NEW" size = 10 style = NORMAL weight = NORMAL)&lt;BR /&gt;                     display = (Line Label Ticks TickValues)&lt;BR /&gt;                     offsetmin = 0.005&lt;BR /&gt;                     offsetmax = 0.005&lt;BR /&gt;                     type = linear&lt;BR /&gt;                     linearopts = (tickvaluefitpolicy = NONE&lt;BR /&gt;                     tickvaluelist = (0 12 24 36 48 60 72 84 96 108 120 132 144 156 168 180 192 204)&lt;BR /&gt;                     tickvaluepriority = TRUE))&lt;BR /&gt;        yaxisopts = (name = "y_axis"&lt;BR /&gt;                     label = "Y Axis Label"&lt;BR /&gt;                     labelattrs = (color = BLACK family = "COURIER NEW" size = 10 style = NORMAL weight = NORMAL)&lt;BR /&gt;                     display = (Line Label Ticks TickValues)&lt;BR /&gt;                     offsetmin = 0.05&lt;BR /&gt;                     offsetmax = 0.05 &lt;BR /&gt;                     type = linear&lt;BR /&gt;                     linearopts = (tickvaluefitpolicy = NONE&lt;BR /&gt;                                   tickvaluesequence = (start = 0 end = 100 increment = 10)&lt;BR /&gt;                                   includeranges = (0-40 55-70)&lt;BR /&gt;                                   tickvaluepriority = TRUE));&lt;BR /&gt;&lt;BR /&gt;         seriesplot x = weekn y = geomean / name = "LinePlot"&lt;BR /&gt;                                            group = acdposta&lt;BR /&gt;                                            display = (markers)&lt;BR /&gt;                                            xaxis = X&lt;BR /&gt;                                            yaxis = Y&lt;BR /&gt;                                            lineattrs = (thickness = 1)&lt;BR /&gt;                                            markerattrs = (size = 7 symbol = CIRCLE transparency = 0 weight = NORMAL);&lt;BR /&gt;&lt;BR /&gt;         scatterplot x = weekn y = geomean / name = "ScatterPlot"&lt;BR /&gt;                                             group = acdposta&lt;BR /&gt;                                             errorbarcapshape = none&lt;BR /&gt;                                             yerrorlower = geolclm&lt;BR /&gt;                                             yerrorupper = geouclm;&lt;BR /&gt;      endlayout;&lt;BR /&gt;    endgraph;&lt;BR /&gt;  end;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods listing close;
ods pdf file = "&amp;amp;outname..pdf" nogtitle nogfootnote;
ods graphics on / reset = all imagefmt = png;

	/* This next prodcedure will go between the ODS RTF lines within your program */
	proc sgrender
	  data = mydata
	  template = lineplot_template;
	run;

ods graphics off;
ods pdf close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The margins do have an affect on the output, but even when they are set to 0, there is a large white space below the output. Any reason why the PDF seems to compress the output? I have attached an image, for certain obvious reason values need to be nulled. but the large box at the bottom are all the footnotes.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12060iD74A79FDC6187663/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="MyFigure.png" title="MyFigure.png" /&gt;</description>
      <pubDate>Wed, 11 Nov 2015 10:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234167#M8497</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-11-11T10:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234185#M8498</link>
      <description>&lt;P&gt;On your DESIGNWIDTH and DESIGNHEIGHT values, put a "px" on the end of your values (i.e. 800px, 300px). I think what's happening is that the default unit of "scaled" pixels is being used, which, in PDF, can cause your graph to shrink. It's always best to put the units on the end of dimension values to help prevent issue like this from occurring.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 11 Nov 2015 13:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234185#M8498</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-11-11T13:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234374#M8503</link>
      <description>&lt;P&gt;Hi Dan, thanks for your response. However this did not work, I actually do have units present usually. Any other suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 13:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234374#M8503</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-11-12T13:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234379#M8504</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hmm... here are a couple of other things to try:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) On your DESIGNWIDTH/DESIGNHEIGHT, specify IN or CM instead of PX. The default DPI for RTF is 200, while it is 150 for PDF. I want to see if there is a DPI scaling issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Instead of specifying DESIGNWIDTH/DESIGNHEIGHT, try using the WIDTH and HEIGHT options on the ODS GRAPHICS statement instead. The&amp;nbsp;&lt;SPAN&gt;DESIGNWIDTH/DESIGNHEIGHT options have a different effect on the graph versus using WIDTH and HEIGHT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try these two things separately, and let me know if you see any differences.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 14:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234379#M8504</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-11-12T14:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234384#M8505</link>
      <description>&lt;P&gt;Hi Dan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) I changed this to 8in and 3in and it looked the same so i increaed this to 20in and 10in, still the same.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) I previosuly tested this, but no luck. I tired again away and yep still nothing &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to be as if the body of the output contains a large white space (below the graph but above the foonotes), because if i remove all foonotes the output does get considerably bigger. But like i said this only affects PDF&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2015 14:52:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234384#M8505</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-11-12T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234633#M8517</link>
      <description>&lt;P&gt;Can you provide a screenshot of your RTF output versus your PDF output?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2015 15:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/234633#M8517</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-11-13T15:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/236195#M8579</link>
      <description>&lt;P&gt;Hi Dan,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry for the late reply, I have attached my RTF output&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12090iA3651370B0868A5E/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="MyRTFFigure.png" title="MyRTFFigure.png" /&gt;</description>
      <pubDate>Tue, 24 Nov 2015 13:55:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/236195#M8579</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2015-11-24T13:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF and GTL (Graphic Template Language) Outputs Shrinking</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/236468#M8583</link>
      <description>&lt;P&gt;I ran your code with SASHELP.CLASS using x=weight and y=age and could not reproduce the problem&amp;nbsp;you are&amp;nbsp;seeing. &amp;nbsp;Both PDF and RTF of the right size. &amp;nbsp;I suggest you can remove IMAGEFMT=PNG from the code to get scalable graphs.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2015 17:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/ODS-PDF-and-GTL-Graphic-Template-Language-Outputs-Shrinking/m-p/236468#M8583</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-11-25T17:49:38Z</dc:date>
    </item>
  </channel>
</rss>

