BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Cingchih
Quartz | Level 8

I exported to 150 pictures (.png) using the ods pdf. the code was as follows:

 

ods pdf file='c:\........pdf ' ;

major code

ods pdf close;

 

I wanted to rotate pdf  from A form to B form. Thank you.

Does it seem that the problem couldn't be solved until today.?

ref: https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-PDF-switch-orientation-between-pages/td-p/...

 

 

 

Image 006.jpg

 

  

1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
SAS Super FREQ

Hi:

  Basically, you just need to switch orientation between steps. I've used a screen shot to highlight the switch. Note that after you issue the OPTIONS statement, you have to then issue an ODS PDF statement to cause ODS to "refresh" the options for the next output.

switch_orientation.png

 

  Hope this helps,

Cynthia

View solution in original post

4 REPLIES 4
Cynthia_sas
SAS Super FREQ
Hi:
It is possible to switch orientations in ODS PDF output files. You need to do it between steps. I will post an example as soon as I find it. This feature has been available for quite a while. The method shown in the older posting (for ODS RTF) should also work for PDF now.
Cynthia
Cingchih
Quartz | Level 8

Thanks in advance.

Cynthia_sas
SAS Super FREQ

Hi:

  Basically, you just need to switch orientation between steps. I've used a screen shot to highlight the switch. Note that after you issue the OPTIONS statement, you have to then issue an ODS PDF statement to cause ODS to "refresh" the options for the next output.

switch_orientation.png

 

  Hope this helps,

Cynthia

Cingchih
Quartz | Level 8

I am so excited now! I got it.

It may be briefly summarized in the following syntax. 

 

Image 007.jpg

 

 

options orientation=landscape; 
ods pdf;
ods pdf file='C:\sasabc\png\kkk.pdf';
ods graphics /   width=1700px  height=1100px  ; 

1)proc sgplot
2)proc sgplot
....
499)proc sgplot
500)proc sgplot   /*print 500 plots*/

ods graphics off;
ods pdf close;

 

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 802 views
  • 0 likes
  • 2 in conversation