<?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 ODS PDF - Shrinking output to fit to one page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1232#M571</link>
    <description>I'm running a multiple page proc report.  The output is approx 30 columns wide and the user needs each page to be printable.  I'm using options legal and landscape but am still running out of room.  Are there any shrink to fit options in ODS PDF or elsewhere?  Thanks.</description>
    <pubDate>Wed, 09 Aug 2006 20:36:06 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2006-08-09T20:36:06Z</dc:date>
    <item>
      <title>ODS PDF - Shrinking output to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1232#M571</link>
      <description>I'm running a multiple page proc report.  The output is approx 30 columns wide and the user needs each page to be printable.  I'm using options legal and landscape but am still running out of room.  Are there any shrink to fit options in ODS PDF or elsewhere?  Thanks.</description>
      <pubDate>Wed, 09 Aug 2006 20:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1232#M571</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-08-09T20:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - Shrinking output to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1233#M572</link>
      <description>Hi!&lt;BR /&gt;
  There are several ways to shrink your output. There is no "shrink to fit" with ODS because ODS leaves it to the viewer/rendering software to control printing issues. There are some SAS options that you can set that specifically affect PDF output. For example these options are one place to start:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=landscape nocenter &lt;BR /&gt;
        topmargin=.25in           &lt;BR /&gt;
        bottommargin=.25in&lt;BR /&gt;
        leftmargin=.25in rightmargin=.25in ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
  Since you are using Proc Report, you are in luck. You can test different runs of Proc Report to ODS PDF using the STYLE= statement level overrides that are possible with REPORT, PRINT and TABULATE procedures.&lt;BR /&gt;
&lt;BR /&gt;
  You can try several things:&lt;BR /&gt;
1) reduce all the fonts for headers and data cells (possibly change the font_face to a "narrow" font)&lt;BR /&gt;
2) reduce cell padding values (cell padding is the "white space" around the text in a cell)&lt;BR /&gt;
3) reduce of remove the cell spacing (cell spacing is the amount of space "between" each cell") -- a cellspacing=0 specification would essentially be used to suppress spaces between the cells&lt;BR /&gt;
4) experiment with values for RULES= and FRAME= style attributes&lt;BR /&gt;
5) experiment with setting explicit cellwidth values (I list this last because this is the most finicky to change, in my opinion)&lt;BR /&gt;
&lt;BR /&gt;
  So, for example to do #1, you would change your proc report to:&lt;BR /&gt;
[pre]&lt;BR /&gt;
  ** use above options statement;&lt;BR /&gt;
  ods pdf file='c:\temp\testfont.pdf';&lt;BR /&gt;
     proc report data=sashelp.class nowd&lt;BR /&gt;
       style(report)={font_size=9pt}&lt;BR /&gt;
       style(header)={font_size=9pt}&lt;BR /&gt;
       style(column)={font_size=8pt};&lt;BR /&gt;
     column name age height;&lt;BR /&gt;
     ...&lt;BR /&gt;
     run;&lt;BR /&gt;
  ods pdf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
  Of course, you would use your data where I have sashelp.class listed. Then to reduce cellpadding, you would revisit your proc report statement with the following change/addition to reduce cellpadding from the PDF default of 4pt to 2pt and to change cellspacing from the .25pt default to .15pt:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.class nowd&lt;BR /&gt;
       style(report)={font_size=9pt cellpadding=2pt&lt;BR /&gt;
                      cellspacing=.15pt}&lt;BR /&gt;
       style(header)={font_size=9pt}&lt;BR /&gt;
       style(column)={font_size=8pt};&lt;BR /&gt;
      ... sas code ...&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
  To remove ALL interior table lines, and exterior box and possibly gain back some space, you can try this:&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
   proc report data=sashelp.class nowd&lt;BR /&gt;
       style(report)={font_size=9pt cellpadding=2pt&lt;BR /&gt;
                      cellspacing=0 rules=none &lt;BR /&gt;
                      frame=void}&lt;BR /&gt;
       style(header)={font_size=9pt}&lt;BR /&gt;
       style(column)={font_size=8pt};&lt;BR /&gt;
      ... sas code ...&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
  I find that reducing margins, font_size and cellpadding generally get my reports to fit when they are very wide. Earlier in the forum, I posted an example macro program that demo'd how font changes could make a very wide report fit in landscape orientation. If you search this forum for a posting entitled, "Dealing with very wide tables", you can copy the macro program from there.&lt;BR /&gt;
I hope this helps you with your report.&lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 10 Aug 2006 01:15:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1233#M572</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2006-08-10T01:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - Shrinking output to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1234#M573</link>
      <description>Thanks.  I used your advice in "Dealing with very wide tables" and it worked, although the end user will have to use a magnifying glass to read the table.  Oh well, price they'll have to pay to have everything on one page.</description>
      <pubDate>Fri, 11 Aug 2006 16:53:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1234#M573</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2006-08-11T16:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - Shrinking output to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1235#M574</link>
      <description>Hello!&lt;BR /&gt;
&lt;BR /&gt;
One way to do this is to set&lt;BR /&gt;
&lt;BR /&gt;
options orientation=landscape papersize=a3;&lt;BR /&gt;
&lt;BR /&gt;
This increases the possibilty to have the output on one page or at least to shrink the width to one page.&lt;BR /&gt;
&lt;BR /&gt;
Best regards,&lt;BR /&gt;
Eva</description>
      <pubDate>Wed, 30 Dec 2009 10:52:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1235#M574</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2009-12-30T10:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - Shrinking output to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1236#M575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;I have 62 columns in my report and about 40 rows. I want my report in 3 pages.( 16 columns in 1st page&amp;nbsp; and 23 each on 2nd and 3rd) is there a way I can control this?&lt;/P&gt;&lt;P&gt;I prefer pdf out put as it preserves SAS formatting.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Jul 2012 04:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1236#M575</guid>
      <dc:creator>rnmishra</dc:creator>
      <dc:date>2012-07-01T04:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF - Shrinking output to fit to one page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1237#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; I almost didn't see this, because it was piggybacked in the middle of a post that was answered several years ago.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I guess I don't quite understand what you want. My tendency would be to do 3 separate proc reports or proc prints, especially if you make it so that each of your 40 obs fits on 1 page:&lt;/P&gt;&lt;P&gt;1 for page 1, list columns 1-16&lt;/P&gt;&lt;P&gt;1 for page 2, list columns 17-39&lt;/P&gt;&lt;P&gt;1 for page 3, list columns 40-62&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But, even so, I think that 40 obs will not fit on either a landscape or a portrait page unless you shrink the font size and cellpadding and change the font used, as described in the post above. Have you tried any of the suggestions above or looked at the code that was posted under the topic of dealing with very wide tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 02:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-Shrinking-output-to-fit-to-one-page/m-p/1237#M576</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-07-02T02:13:22Z</dc:date>
    </item>
  </channel>
</rss>

