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 in the Full Code section 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.
Full Code
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;