Changing the Page Layout

The following system options enable you to change the page layout for your PDF document when you use the ODS PDF destination or one of the PDF devices:
  • ORIENTATION=PORTRAIT | LANDSCAPE | REVERSEPORTRAIT | REVERSELANDSCAPE
  • PAPERSIZE="paper-size"
  • LEFTMARGIN=value
  • RIGHTMARGIN= value
  • TOPMARGIN= value
  • BOTTOMMARGIN=value
The PAPERSIZE= and margin options must be set before the ODS PDF statement is executed. These settings apply to the entire file and cannot be changed as the output is being generated. In contrast, the ORIENTATION= system option can be used to set the initial page orientation and to change the page orientation at any point as the output is being generated. See SAS System Options: Reference for information about these system options. See Example: Writing Graphs to a PDF File That Contains Bookmarks and Metadata for an example of how to use these system options to change the page layout of a PDF file.