LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (May 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 23 May 2005 11:05:27 -0400
Reply-To:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Richard A. DeVenezia" <radevenz@IX.NETCOM.COM>
Subject:   Re: How to convert a RTF file into a PDF file with SAS statements?
Comments:   To: sas-l@uga.edu

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/


Back to: Top of message | Previous page | Main SAS-L page