Usage Note 24182: How to remove 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. You can suppress borders on PDF links by specifying LINKCOLOR=_undef_ in the style element BODY. The sample code on the Full Code tab illustrates this.
Use a LINKCOLOR= value of white if the table does not have borders and black if it does have borders.
The border box is the official Adobe way to indicate links, so the boxes disappear when you print the file, regardless of their 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 code generates two customized styles. The styles.MYSTYLE style definition uses the LINK style reference in the COLOR_LIST style element to change the border around a URL link, whereas the styles.MYSTYLE2 style definition changes the LINKCOLOR style attribute defined in the BODY style element.
ods path (prepend) work.template(update);
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=_undef_;
end;
run;
options orientation=portrait;
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 |