DATA Step, Macro, Functions and more

With respect to ods pdf

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 17
Accepted Solution

With respect to ods pdf

[ Edited ]

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

 

  


Accepted Solutions
Solution
Wednesday
SAS Super FREQ
Posts: 9,321

Re: With respect to ods pdf

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


All Replies
SAS Super FREQ
Posts: 9,321

Re: With respect to ods pdf

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
Occasional Contributor
Posts: 17

Re: With respect to ods pdf

Posted in reply to Cynthia_sas

Thanks in advance.

Solution
Wednesday
SAS Super FREQ
Posts: 9,321

Re: With respect to ods pdf

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

Occasional Contributor
Posts: 17

Re: With respect to ods pdf

[ Edited ]
Posted in reply to Cynthia_sas

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;

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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