<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Coverting rtf to pdf using VBS code in linux server in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866223#M26320</link>
    <description>If you don't have permissions you may be able to add ODS PDF statements depending on the code used to have a PDF generated instead of RTF.&lt;BR /&gt;&lt;BR /&gt;VBS typically doesn't run on Linux, usually a different approach is used.</description>
    <pubDate>Fri, 24 Mar 2023 19:34:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-03-24T19:34:06Z</dc:date>
    <item>
      <title>Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866097#M26313</link>
      <description>&lt;P&gt;bRecursive = False&lt;BR /&gt;sFolder = "D:\Users\gci0mxm\Desktop\Test"&lt;BR /&gt;Set oFSO = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;Set oWord = CreateObject("Word.Application")&lt;BR /&gt;oWord.Visible = True&lt;/P&gt;&lt;P&gt;Set oFolder = oFSO.GetFolder(sFolder)&lt;BR /&gt;ConvertFolder(oFolder)&lt;BR /&gt;oWord.Quit&lt;/P&gt;&lt;P&gt;Sub ConvertFolder(oFldr)&lt;BR /&gt;For Each oFile In oFldr.Files&lt;BR /&gt;If LCase(oFSO.GetExtensionName(oFile.Name)) = "rtf" Then&lt;BR /&gt;Set oDoc = oWord.Documents.Open(oFile.path)&lt;BR /&gt;Str = left(oFile,instr(1,oFile,".")-1)&lt;BR /&gt;oWord.ActiveDocument.SaveAs Str &amp;amp; ".pdf", 17&lt;BR /&gt;oDoc.Close&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;If bRecursive Then&lt;BR /&gt;For Each oSubfolder In oFldr.Subfolders&lt;BR /&gt;ConvertFolder oSubfolder&lt;BR /&gt;Next&lt;BR /&gt;End If&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created vbs file in linux server but I can't able to run inside the linux server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me to run vbs file in linux server or any other alternate solutions for generating pdf from rtf in&amp;nbsp;&lt;SPAN&gt;&lt;SPAN class=""&gt;SAS (HMS/cloud).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 12:48:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866097#M26313</guid>
      <dc:creator>mazz</dc:creator>
      <dc:date>2023-03-24T12:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866220#M26318</link>
      <description>&lt;P&gt;You need a VB runtime executable on Linux. Your admins for the SAS server can help you in this regard. And you must be able to run external commands (SAS system option XCMD set), for which you also need your SAS admins.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 19:29:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866220#M26318</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-24T19:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866222#M26319</link>
      <description>&lt;P&gt;But this&lt;/P&gt;
&lt;PRE&gt;Word.Documents.Open&lt;/PRE&gt;
&lt;P&gt;makes me suspect that you actually use Word for the conversion. Word is only available on Windows.&lt;/P&gt;
&lt;P&gt;LibreOffice is available on Linux and can do such conversions from the commandline, IIRC.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 19:33:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866222#M26319</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-24T19:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866223#M26320</link>
      <description>If you don't have permissions you may be able to add ODS PDF statements depending on the code used to have a PDF generated instead of RTF.&lt;BR /&gt;&lt;BR /&gt;VBS typically doesn't run on Linux, usually a different approach is used.</description>
      <pubDate>Fri, 24 Mar 2023 19:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866223#M26320</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-03-24T19:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866224#M26321</link>
      <description>&lt;P&gt;And if the rtf is actually created with SAS, you only need to add ODS PDF to open the pdf destination.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 19:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866224#M26321</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-03-24T19:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866560#M26344</link>
      <description>vbs does not run in the Linux environment. &lt;BR /&gt;If your objective is to convert rtf to pdf in a Linux environment there are command line utilities available to do the job. Speak to the Linux team for assistance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Mar 2023 15:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/866560#M26344</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2023-03-27T15:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coverting rtf to pdf using VBS code in linux server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/867223#M26364</link>
      <description>&lt;P&gt;This is not anything related to SAS Administration nor Deployments. The only thing roughly making this something interesting to SAS users in this community is your question is about doing something with data on a SAS hosted platform.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is nothing built into any SAS product to do this. If the source of the RTF is SAS ODS, simply update the program to use a PDF destination in addition to RTF. If the rtf file is produced outside of SAS then your only chance would be to find a package supported by Red Hat that can accomplish this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My quick search reveals there is a possibility for LibreOffice to have an ability to take an RTF files and convert it to a PDF. See the --convert-to argument in the LibreOffice documentation &lt;A href="https://help.libreoffice.org/latest/he/text/shared/guide/start_parameters.html" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 10:20:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Coverting-rtf-to-pdf-using-VBS-code-in-linux-server/m-p/867223#M26364</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2023-03-30T10:20:19Z</dc:date>
    </item>
  </channel>
</rss>

