Usage Note 24182: How can I get rid of the blue border
around URL= links in an ODS PDF file?
The color of the border box around a URL link is controlled by the LINKCOLOR style attribute. In SAS 9.0 and later, you can suppress borders on PDF links with LINKCOLOR = _undef_ in the document style element.
Use a LINKCOLOR of white if the table doesn't have borders and black if it does have borders.
The border box is the official Adobe way to indicate links so the boxes vanish when you print the file, regardless of color.
Operating System and Release Information
| SAS System | Base SAS | All | n/a | |
| z/OS | 9 TS M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9 TS M0 | |
| Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
| Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
| Microsoft Windows 2000 Server | 9 TS M0 | |
| Microsoft Windows 2000 Professional | 9 TS M0 | |
| Microsoft Windows NT Workstation | 9 TS M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
| Microsoft Windows XP Professional | 9 TS M0 | |
| 64-bit Enabled AIX | 9 TS M0 | |
| 64-bit Enabled HP-UX | 9 TS M0 | |
| 64-bit Enabled Solaris | 9 TS M0 | |
| HP-UX IPF | 9 TS M0 | |
| Linux | 9 TS M0 | |
| OpenVMS Alpha | 9 TS M0 | |
| Tru64 UNIX | 9 TS M0 | |
*
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 following syntax is supported in SAS 9.0 and later. The MYSTYLE style definition uses the LINK style reference in the COLOR_LIST style element to change the border around a URL link, whereas the MYSTYLE2 definition uses the LINKCOLOR style attribute defined in the BODY style element.
proc template;
define style styles.mystyle;
parent=styles.printer;
replace color_list
"Colors used in the default style" /
'link' = white
'bgH' = grayBB
'fg' = black
'bg' = _undef_;
end;
define style styles.mystyle2;
parent=styles.printer;
style body from document /
linkcolor=white;
end;
run;
options orientation=portrait;
ods listing close;
ods pdf file="file.pdf" style=styles.mystyle notoc;
title link="http://support.sas.com" "support.sas.com";
proc print data=sashelp.class;
run;
ods pdf style=styles.mystyle2;
title link="http://support.sas.com" "support.sas.com";
proc print data=sashelp.class;
run;
ods pdf close;
ods listing;
| Type: | Usage Note |
| Priority: | low |
| Topic: | System Administration ==> Printing Third Party ==> Output ==> PDF SAS Reference ==> ODS (Output Delivery System)
|
| Date Modified: | 2009-01-16 12:19:55 |
| Date Created: | 2004-10-06 16:42:13 |