Problem Note 59496: Page margins cannot be changed within a PDF file created by ODS
Page margins that are set by the style or in an OPTIONS statement at the initiation of a PDF file created by ODS remain in effect until the end of the file. The margins cannot be changed or toggled within the PDF file.
Although the page margins cannot be changed, ODS LAYOUT syntax can be used to change text placement on a page and mimic a change in margins using the X= and Y= arguments. The sample code on the Full Code tab illustrates this.
Operating System and Release Information
SAS System | Base SAS | 64-bit Enabled HP-UX | 9.2 TS1M0 | 9.4 TS1M5 |
64-bit Enabled AIX | 9.2 TS1M0 | 9.4 TS1M5 |
Windows Vista for x64 | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
z/OS | 9.2 TS1M0 | 9.4 TS1M5 |
z/OS 64-bit | 9.2 TS1M0 | 9.4 TS1M5 |
64-bit Enabled Solaris | 9.2 TS1M0 | 9.4 TS1M5 |
HP-UX IPF | 9.2 TS1M0 | 9.4 TS1M5 |
Linux | 9.2 TS1M0 | 9.4 TS1M5 |
Linux for x64 | 9.2 TS1M0 | 9.4 TS1M5 |
OpenVMS on HP Integrity | 9.2 TS1M0 | 9.4 TS1M5 |
Solaris for x64 | 9.2 TS1M0 | 9.4 TS1M5 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Although the page margins cannot be changed, ODS LAYOUT syntax can be used to change text placement on a page and mimic a change in margins using the X= and Y= arguments.
ods _all_ close;
options nocenter nodate nonumber leftmargin=0cm;
ods pdf file="sample.pdf";
ods layout gridded columns=1 x=0cm;
ods region;
title "First page";
proc print data=sashelp.class;
run;
title;
ods layout end;
ods pdf startpage=now;
ods layout gridded columns=1 x=2cm y=4cm;
ods region;
title "Second page";
proc print data=sashelp.class;
run;
title;
ods layout end;
ods pdf close;
Type: | Problem Note |
Priority: | high |
Date Modified: | 2016-12-16 10:36:34 |
Date Created: | 2016-12-09 13:23:51 |