Sample 47306: Using the NOGTITLE option in the ODS PDF statement with SAS® 9.3
Starting with SAS 9.3, you can now use the NOGTITLE and NOGFOOTNOTE options in the ODS PDF statement. These options force titles and footnotes to be written as part of the PDF output instead of being embedded as part of the graph.
By default, SAS/GRAPH® does not support the PREIMAGE option in a TITLE statement, such as:
title1 "^S={preimage='k:\sasmlm\images\saslogo.jpg'}";
However, starting with SAS 9.3, you can now use the PREIMAGE option in a TITLE statement as shown above when also specifying the NOGTITLE option in the ODS PDF statement. The sample code on the Full Code tab demonstrates this technique.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample demonstrates the use of the NOGTITLE option in the ODS PDF statement. You must be running SAS 9.3 in order to use the NOGTITLE and NOGFOOTNOTE options in the ODS PDF statement.
ods escapechar="^";
options nodate nonumber;
goptions reset=all device=sasprtc;
ods _all_ close;
ods pdf file='g47306.pdf' dpi=300 nogtitle;
title1 "^S={preimage='path-to-your-image\yourimage.jpg'}";
symbol1 i=none v=dot c=libg;
proc gplot data=sashelp.cars;
plot mpg_city * horsepower;
run;
quit;
ods _all_ close;
ods pdf close ;
ods listing;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
This sample illustrates how to use the NOGTITLE option in the ODS PDF statement with SAS® 9.3.
Date Modified: | 2012-09-05 12:36:12 |
Date Created: | 2012-08-24 09:25:16 |
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.3 TS1M0 | |
Microsoft® Windows® for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 | 9.3 TS1M0 | |
Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | |
Microsoft Windows XP Professional | 9.3 TS1M0 | |
Windows 7 Enterprise 32 bit | 9.3 TS1M0 | |
Windows 7 Enterprise x64 | 9.3 TS1M0 | |
Windows 7 Home Premium 32 bit | 9.3 TS1M0 | |
Windows 7 Home Premium x64 | 9.3 TS1M0 | |
Windows 7 Professional 32 bit | 9.3 TS1M0 | |
Windows 7 Professional x64 | 9.3 TS1M0 | |
Windows 7 Ultimate 32 bit | 9.3 TS1M0 | |
Windows 7 Ultimate x64 | 9.3 TS1M0 | |
Windows Vista | 9.3 TS1M0 | |
Windows Vista for x64 | 9.3 TS1M0 | |
64-bit Enabled AIX | 9.3 TS1M0 | |
64-bit Enabled HP-UX | 9.3 TS1M0 | |
64-bit Enabled Solaris | 9.3 TS1M0 | |
HP-UX IPF | 9.3 TS1M0 | |
Linux | 9.3 TS1M0 | |
Linux for x64 | 9.3 TS1M0 | |
Solaris for x64 | 9.3 TS1M0 | |