<?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 switch orientation between pages in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63404#M7433</link>
    <description>Hi:&lt;BR /&gt;
  Only the RTF destination allows you to switch orientations in mid-stream. ODS PDF does not allow that. &lt;BR /&gt;
&lt;BR /&gt;
There is nothing in the style template that would fool PDF into creating one page that was portrait and the next page/report that was landscape. So although you had a good idea, it is not really going to work the way you envisioned.&lt;BR /&gt;
&lt;BR /&gt;
  To switch orientations in midstream with ODS RTF, you have to do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=portrait;&lt;BR /&gt;
  &lt;BR /&gt;
ods rtf file='twoway.rtf';&lt;BR /&gt;
    &lt;BR /&gt;
** first procedure;&lt;BR /&gt;
  &lt;BR /&gt;
options orientation=landscape;&lt;BR /&gt;
ods rtf;&lt;BR /&gt;
   &lt;BR /&gt;
** second procedure;&lt;BR /&gt;
   &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
Note that after you switch orientations, you must get ODS RTF to "refresh" the options by issuing an ODS RTF; statement without any other options on the statement. However, this technique does NOT work for ODS PDF.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 27 Nov 2008 23:15:54 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-11-27T23:15:54Z</dc:date>
    <item>
      <title>ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63402#M7431</link>
      <description>Hi,&lt;BR /&gt;
        I want my title page to have portrait orientation, but I want landscape orientation for the next page.&lt;BR /&gt;
&lt;BR /&gt;
 Thanks for the help in advance,&lt;BR /&gt;
&lt;BR /&gt;
Amit</description>
      <pubDate>Thu, 27 Nov 2008 19:23:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63402#M7431</guid>
      <dc:creator>AmitKB</dc:creator>
      <dc:date>2008-11-27T19:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63403#M7432</link>
      <description>Amit;&lt;BR /&gt;
&lt;BR /&gt;
Changing the options orientation= from portrait to landscape midstream does not work.  You might be able to set up two ODS templates where one is "sized" to look like it's landscape and then use it for the first page while reverting back to another template for the portrait pages.  I don't know if the ODS templates can be manipulated to do that.  Something for you to explore.  Please be sure to post your findings.&lt;BR /&gt;
&lt;BR /&gt;
Something like:&lt;BR /&gt;
&lt;BR /&gt;
options orientation=portrait;                                                                                                           &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
ods pdf file='c:\temp\test.pdf' style=statistical;                                                                                      &lt;BR /&gt;
*where the statistical template is a landscape template; &lt;BR /&gt;
                                                                               &lt;BR /&gt;
proc print data=sashelp.class;                                                                                                          &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
*options orientation=landscape;*this does not work;                                                                                     &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
ods pdf style=brick;                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
proc print data=sashelp.class;                                                                                                          &lt;BR /&gt;
run;                                                                                                                                    &lt;BR /&gt;
                                                                                                                                        &lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
&lt;BR /&gt;
Bill</description>
      <pubDate>Thu, 27 Nov 2008 20:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63403#M7432</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2008-11-27T20:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63404#M7433</link>
      <description>Hi:&lt;BR /&gt;
  Only the RTF destination allows you to switch orientations in mid-stream. ODS PDF does not allow that. &lt;BR /&gt;
&lt;BR /&gt;
There is nothing in the style template that would fool PDF into creating one page that was portrait and the next page/report that was landscape. So although you had a good idea, it is not really going to work the way you envisioned.&lt;BR /&gt;
&lt;BR /&gt;
  To switch orientations in midstream with ODS RTF, you have to do this:&lt;BR /&gt;
[pre]&lt;BR /&gt;
options orientation=portrait;&lt;BR /&gt;
  &lt;BR /&gt;
ods rtf file='twoway.rtf';&lt;BR /&gt;
    &lt;BR /&gt;
** first procedure;&lt;BR /&gt;
  &lt;BR /&gt;
options orientation=landscape;&lt;BR /&gt;
ods rtf;&lt;BR /&gt;
   &lt;BR /&gt;
** second procedure;&lt;BR /&gt;
   &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
Note that after you switch orientations, you must get ODS RTF to "refresh" the options by issuing an ODS RTF; statement without any other options on the statement. However, this technique does NOT work for ODS PDF.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 27 Nov 2008 23:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63404#M7433</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-11-27T23:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63405#M7434</link>
      <description>Hi Cynthia, I was also interesting in doing this in PDF.  Are there any plans to add this in a future release?</description>
      <pubDate>Fri, 13 Aug 2010 15:34:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63405#M7434</guid>
      <dc:creator>FrankE</dc:creator>
      <dc:date>2010-08-13T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63406#M7435</link>
      <description>Hi, Frank:&lt;BR /&gt;
  I have no idea whether this is even possible. PDF files are in a proprietary form and my understanding of how ODS PDF works (conceptually) is that your output is formatted in some buffer area as though it was going to a physical printer and then that internal copy of the printer version of the file is sent to PDF proprietary format. So I don't know whether the Adobe proprietary format that ODS creates has that capability to switch orientations in midstream. My assumption is that if it &lt;U&gt;were&lt;/U&gt; possible, the developers would have implemented the capability for PDF at the same time, or shortly after, they implemented it for RTF. &lt;BR /&gt;
      &lt;BR /&gt;
  If you send a mail to ods@sas.com, you could ask the ODS developers whether it's a possibility or not.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 13 Aug 2010 16:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63406#M7435</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-13T16:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63407#M7436</link>
      <description>Excellent, thanks so much for your response.  The only other thing I can think of is creating seperate PDF's, change the system orientation option in between, then somehow merging the two documents..  but I don't see that merge happening in SAS...

Message was edited by: FrankE</description>
      <pubDate>Fri, 13 Aug 2010 17:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63407#M7436</guid>
      <dc:creator>FrankE</dc:creator>
      <dc:date>2010-08-13T17:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63408#M7437</link>
      <description>You're right, I expect you'd use some Adobe product or 3rd party PDF maker in order to put 2 separate PDF files together. It is a long-standing fact that you can ONLY append outputs using ODS HTML -- you can't append to ODS RTF or ODS PDF files using SAS. That's because the RTF spec and the PDF spec both have VERY rigid rules for what type of file/begin and file/end code is allowed in the output file.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 13 Aug 2010 18:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63408#M7437</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-08-13T18:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63409#M7438</link>
      <description>Good news!!!  I have the orientation switch working in ODS PDF and it will be available in the next major release of SAS!!!</description>
      <pubDate>Mon, 16 Aug 2010 14:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63409#M7438</guid>
      <dc:creator>ScottH_SAS</dc:creator>
      <dc:date>2010-08-16T14:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63410#M7439</link>
      <description>Scott,&lt;BR /&gt;
&lt;BR /&gt;
Does this means   9.3? next year?&lt;BR /&gt;
&lt;BR /&gt;
Andre</description>
      <pubDate>Mon, 16 Aug 2010 15:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63410#M7439</guid>
      <dc:creator>Andre</dc:creator>
      <dc:date>2010-08-16T15:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63411#M7440</link>
      <description>great news!  I'm also curious on the time frame for this release...</description>
      <pubDate>Mon, 16 Aug 2010 17:49:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63411#M7440</guid>
      <dc:creator>FrankE</dc:creator>
      <dc:date>2010-08-16T17:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: ODS PDF switch orientation between pages</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63412#M7441</link>
      <description>We are currently shooting for availability right around SAS Global Forum</description>
      <pubDate>Tue, 17 Aug 2010 19:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/m-p/63412#M7441</guid>
      <dc:creator>ScottH_SAS</dc:creator>
      <dc:date>2010-08-17T19:42:55Z</dc:date>
    </item>
  </channel>
</rss>

