Problem Note 55923: ODS GRAPHICS statement HEIGHT= or WIDTH= values might be ignored in ODS PDF destination output
The ODS GRAPHICS statement options HEIGHT= and WIDTH= can be used to control the size of output created by procedures that support ODS Graphics.
The HEIGHT= or WIDTH= options might be ignored in the ODS PDF destination. This is most likely to occur if many titles and footnotes are defined and the ODS PDF options NOGTITLE and/or NOGFOOTNOTE are in effect. No warning is generated. However, the image appears smaller than the specified height or width value. The problem can also occur with PROC SGRENDER if the default GTITLE and GFOOTNOTE options are in effect.
The sample code on the Full Code tab illustrates a workaround using ODS PDF TEXT=.
Operating System and Release Information
SAS System | Base SAS | Windows Vista for x64 | 9.3 TS1M0 | |
Windows Vista | 9.3 TS1M0 | |
Windows 7 Ultimate x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Professional x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Professional 32 bit | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Home Premium x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Enterprise x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | 9.4 TS1M5 |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2008 R2 | 9.3 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2008 | 9.3 TS1M0 | 9.4 TS1M5 |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
Microsoft® Windows® for x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Z64 | 9.3 TS1M0 | 9.4 TS1M5 |
z/OS | 9.3 TS1M0 | 9.4 TS1M5 |
64-bit Enabled AIX | 9.3 TS1M0 | 9.4 TS1M5 |
64-bit Enabled HP-UX | 9.3 TS1M0 | 9.4 TS1M5 |
64-bit Enabled Solaris | 9.3 TS1M0 | 9.4 TS1M5 |
HP-UX IPF | 9.3 TS1M0 | 9.4 TS1M5 |
Linux | 9.3 TS1M0 | 9.4 TS1M5 |
Linux for x64 | 9.3 TS1M0 | 9.4 TS1M5 |
Solaris for x64 | 9.3 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.
The test code creates two PDF files. The first, PROBLEM.PDF, shows PROC SGPLOT output that is not 8 inches wide. The file WORKAROUND.PDF shows PROC SGPLOT output that is 8 inches wide.
/* PROBLEM.PDF shows SGPLOT output that is not 8 inches wide */
ods _all_ close;
options orientation=landscape nonumber nodate;
ods pdf file="problem.pdf" nogfootnote nogtitle notoc;
title1 "title 1";
title5 "title 5";
footnote "footnote 1";
footnote5 "footnote 5";
ods graphics on / reset width=8in;
proc sgplot data=sashelp.cars;
bubble x=horsepower y=mpg_city size=cylinders;
run;
ods pdf close;
/* WORKAROUND.PDF shows SGPLOT output that is 8 inches wide. */
ods pdf file="workaround.pdf" nogfootnote nogtitle notoc;
title1 "title 1";
title5 "title 5";
footnote "footnote 1";
footnote5 "footnote 5";
/* Insert a blank row with TEXT= and eliminate the page
break this statement generates by setting STARTPAGE=NO. */
ods pdf text=" " startpage=no;
ods graphics on / reset border width=8in;
proc sgplot data=sashelp.cars;
bubble x=horsepower y=mpg_city size=cylinders;
run;
/* If more pages follow, uncomment the folllowing code to */
/* reset the STARTPAGE= option to its default value of YES. */
/*ods pdf startpage=yes;*/
ods pdf close;
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2015-06-04 10:38:20 |
Date Created: | 2015-06-03 12:52:02 |