The SAS Output Delivery System and reporting techniques

RTF to PDF

Reply
Occasional Contributor
Posts: 6

RTF to PDF

Hi to all,
I generated one Word Document which contains the Hyperlinks to open the particular pages of PDF.
(FYI: Hyperlinks are generated by RTF Tags).
When I converted that file (doc) to PDF by ‘PRINT’ options, I can’t get those hyperlinks. I believe this was happened due to ‘RTF Tags’. Since RTF tags are not worked in PDF.

Any one can help to resolve this.

Thanks in Advance.

Regards,
S E N T H I L
SAS Super FREQ
Posts: 8,868

Re: RTF to PDF

Posted in reply to S_E_N_T_H_I_L
Hi:
I noticed that you also posted this question in the Microsoft Office forum. This suggested method for setting hyperlinks was posted there:
http://support.sas.com/forums/thread.jspa?threadID=7725&tstart=0

In addition to that method, (which shows a URL= style override being used in a SAS TITLE statement), you can set a URL based on a variable's value, as shown in the program below.

cynthia

[pre]
proc format;
value $gend 'M' = 'http://www.google.com'
'F' = 'http://www.weather.com';
run;

title; footnote;
options nodate nonumber;
ods listing close;

ods pdf file="c:\temp\show_url.pdf" notoc;
ods escapechar="^";

proc print data=sashelp.class;
title 'Use URL in variable cells based on variable value';
var name age height;
var sex / style(data)={url=$gend.};
run;

ods pdf close;
[/pre]
Occasional Contributor
Posts: 6

Re: RTF to PDF

Posted in reply to Cynthia_sas
Hi,

Thanks for your response.

Already I have tried this method. But it not meet the following(MY) situations,

1. More than one hyperlink in specified cell
2. Hyperlink should be present in the specified text.., not for whole cell

Help to resolve this.

Thanks & Regards,
S E N T H I L
SAS Super FREQ
Posts: 8,868

Re: RTF to PDF

Posted in reply to S_E_N_T_H_I_L
Hi:
As Scott already replied to your previous posting....you can only have one hyperlink per cell. And the hyperlink attaches to the contents of the whole cell. If you have an Adobe product, can you put multiple hyperlinks in a single table cell??? And, even if it is possible with an Adobe product, you can't do everything with SAS that you can do with Adobe when you create a PDF file.

cynthia
Ask a Question
Discussion stats
  • 3 replies
  • 702 views
  • 0 likes
  • 2 in conversation