Hi Reeza
Once pdf file is created, when we open using Adobe, it looks like document title name is not same as file name. For example, if file name is "test.pdf" after opening in adobe it shows as as "Version 9.4 SAS System Output" which is a document title. Is there anyway to make document title same as file name in VB script?
Thanks very much
@omka_ wrote:
Hello everyone,,
I am trying to convert an RTF file to a PDF file using SAS 9.4. I am not talking about merely changing the ods output from rtf to pdf. Instead, I have a file in a folder that is in RTF format, and I want SAS to use that and convert it with code into a PDF file into another folder. Attached is a sample rtf file. I have read online that you can use the x command to do this but I am not sure about how to write the code. Thanks.
Are you using a Windows version of SAS? Do you have WORD available on the machine that SAS is running on? If you open the RTF file in WORD is SAVE-AS-PDF an option? Are you allowed to use X command? It can be restricted.
This method can work, but it takes more than 1 hour when converting larger RTF files with more than 5000 pages, in this case, your PC will work slowly due to converting.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.