|
lzhang9830@yahoo.com wrote:
> Hi All,
> Does anyone know how to convert a RTf file into a PDF file by
> using SAS statements, or within SAS system? Any suggestion will be
> very welcome. Thanks.
If the RTF is created from inside SAS, use ODS PDF instead of ODS RTF.
When the RTF is created outside of SAS, figure out how to convert it outside
of SAS (a google for {convert rtf pdf} should give you about a million
hits). Once you figure that out, use the SAS X command to run the external
converter from within SAS.
OpenOffice is one way to externally pdf'isize an rtf. See
http://www.oooforum.org/forum/viewtopic.phtml?t=3772, "How to convert
Word -> PDF from the command line"
To use it from SAS you would have something like
-------------------
options noxwait xsync xmin;
%SYSEXEC
"c:\program files\OpenOffice.org1.1.0\program\soffice"
-headless
"macro:///MyLibrary.Conversion.ConvertRtfToPdf(myFile.rtf)"
-------------------
--
Richard A. DeVenezia
http://www.devenezia.com/
|