<?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 How to change PAPERSIZE on different pages when using ODS PDF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-PAPERSIZE-on-different-pages-when-using-ODS-PDF/m-p/745392#M233635</link>
    <description>&lt;P&gt;Hello, I'm trying to make a report in ODS PDF with a lot of images where I want to set the PAPERSIZE to best fit the image.&amp;nbsp; I've done this before in ODS EXCEL, but can't seem to make it work in ODS PDF.&amp;nbsp; I get stuck when trying to do an ODS LAYOUT in the new PAPERSIZE and it won't work because the height is taller than the first page's PAGESIZE.&amp;nbsp; Here's what I'm trying:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
option papersize = (14in 13in) orientation=landscape leftmargin=0.1in rightmargin=0.1in;
ods pdf file='early_onset_figures.pdf' notoc bookmarkgen=no;
**First graph code here;

option papersize = (9in 14in);
ods pdf;
title 'Figure 3';
ods layout start  rows=2 width=7in height=13in;
ods region;
**plot stuff here;
ods region;
**more plot stuff here;
ods layout close;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried changing the PAPERSIZE option prior to doing another ODS PDF statement and again without the ODS PDF statement with the same results.&amp;nbsp; I get a warning when I try to do the ODS LAYOUT statement that "WARNING: HEIGHT exceeds available space for PDF destination. This option will be ignored."&amp;nbsp; If I have the second PAPERSIZE option and I try changing the height to be anything and still get this warning for some reason.&amp;nbsp; If I set my PAPERSIZE to the second figure and don't try to change it I don't get this warning. Is this possible to change or does the PAPERSIZE when ODS PDF starts set for the rest of the document?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jun 2021 05:16:01 GMT</pubDate>
    <dc:creator>JeffMeyers</dc:creator>
    <dc:date>2021-06-03T05:16:01Z</dc:date>
    <item>
      <title>How to change PAPERSIZE on different pages when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-PAPERSIZE-on-different-pages-when-using-ODS-PDF/m-p/745392#M233635</link>
      <description>&lt;P&gt;Hello, I'm trying to make a report in ODS PDF with a lot of images where I want to set the PAPERSIZE to best fit the image.&amp;nbsp; I've done this before in ODS EXCEL, but can't seem to make it work in ODS PDF.&amp;nbsp; I get stuck when trying to do an ODS LAYOUT in the new PAPERSIZE and it won't work because the height is taller than the first page's PAGESIZE.&amp;nbsp; Here's what I'm trying:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
option papersize = (14in 13in) orientation=landscape leftmargin=0.1in rightmargin=0.1in;
ods pdf file='early_onset_figures.pdf' notoc bookmarkgen=no;
**First graph code here;

option papersize = (9in 14in);
ods pdf;
title 'Figure 3';
ods layout start  rows=2 width=7in height=13in;
ods region;
**plot stuff here;
ods region;
**more plot stuff here;
ods layout close;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I tried changing the PAPERSIZE option prior to doing another ODS PDF statement and again without the ODS PDF statement with the same results.&amp;nbsp; I get a warning when I try to do the ODS LAYOUT statement that "WARNING: HEIGHT exceeds available space for PDF destination. This option will be ignored."&amp;nbsp; If I have the second PAPERSIZE option and I try changing the height to be anything and still get this warning for some reason.&amp;nbsp; If I set my PAPERSIZE to the second figure and don't try to change it I don't get this warning. Is this possible to change or does the PAPERSIZE when ODS PDF starts set for the rest of the document?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 05:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-PAPERSIZE-on-different-pages-when-using-ODS-PDF/m-p/745392#M233635</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2021-06-03T05:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change PAPERSIZE on different pages when using ODS PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-change-PAPERSIZE-on-different-pages-when-using-ODS-PDF/m-p/749031#M235322</link>
      <description>&lt;P&gt;I think the option statement can only be used while ods pdf is closed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using the following code on SAS EG produces two PDF documents which can then be combined:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
option papersize = (14in 13in) orientation=landscape leftmargin=0.1in rightmargin=0.1in;
ods pdf file="C:\My SAS\_examples_/early_onset_figures.pdf" notoc bookmarkgen=no;
**First graph code here;
title 'Figure 1';
ods layout start  rows=2 width=7in height=12in;
ods region;
**plot stuff here;
ods region;
**more plot stuff here;
ods layout end ;
ods pdf close;

option papersize = (9in 14in);
ods pdf file="C:\My SAS\_examples_/early_onset_fig2.pdf";
title 'Figure 2';
ods layout start  rows=2 width=7in height=13in;
ods region;
**plot stuff here;
ods region;
**more plot stuff here;
ods layout end ;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By the way, the layout wrapper is "start" and "end" (not "close").&lt;/P&gt;</description>
      <pubDate>Sat, 19 Jun 2021 14:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-change-PAPERSIZE-on-different-pages-when-using-ODS-PDF/m-p/749031#M235322</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2021-06-19T14:24:41Z</dc:date>
    </item>
  </channel>
</rss>

