<?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: convert HTML to PDF in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396386#M278145</link>
    <description>&lt;P&gt;The basic SAS output to PDF is ODS. You would place procedures that generate output between an ODS PDF destination statement and an ODS PDF Close statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf file="C:\path\myfile.pdf";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would create the PDF file myfile.pdf in the folder C:\path and have the results of the proc print.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are writing raw html then this approach likely won't help.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 15:18:48 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-09-15T15:18:48Z</dc:date>
    <item>
      <title>convert HTML to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396349#M278142</link>
      <description>&lt;P&gt;May i know if we Can read HTML file in sas and convert into PDF ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currerntly Iam using third party tools like PDFMYURL.com and so on..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just want read final output.html file and conver into pdf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:37:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396349#M278142</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2017-09-15T14:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: convert HTML to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396366#M278143</link>
      <description>&lt;P&gt;Is the output.html file from SAS? Can you provide some more details?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's no direct method, but if it's SAS output that can also be redirected to a PDF file. You can also use third party tools directly from SAS using the X/SYSEXEC command to call them.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396366#M278143</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-15T14:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: convert HTML to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396373#M278144</link>
      <description>&lt;P&gt;yes , the HTML output is from SAS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&lt;FONT size="3"&gt;&lt;SPAN&gt;Basical&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols"&gt;ly I didn't wrote any html&amp;nbsp;code inside the sas code , First we created the html_template and then we passed macro variable to the html.&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;1)&amp;nbsp;SAS code :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;data send_to_html;&lt;/DIV&gt;
&lt;DIV&gt;set input_table;&lt;/DIV&gt;
&lt;DIV&gt;/* define the code to run for each observation */&lt;/DIV&gt;
&lt;DIV&gt;/* &amp;nbsp;/sas/config/ma/Lev1/SASMA/test*/&lt;/DIV&gt;
&lt;DIV&gt;&amp;amp;LBL_ADT.;&lt;/DIV&gt;
&lt;DIV&gt;code = 'filename letter&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"location/filename&lt;/SPAN&gt;&lt;SPAN&gt;.html&lt;/SPAN&gt;&lt;SPAN&gt;" '&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;||'lrecl=32767 ; '&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;||'proc stream outfile=letter mod quoting=both; &amp;nbsp;'&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;||'begin '&lt;/DIV&gt;
&lt;DIV&gt;||'&amp;amp;streamdelim; %include test(html&lt;SPAN&gt;_template.h&lt;/SPAN&gt;&lt;SPAN&gt;tm&lt;/SPAN&gt;&lt;FONT color="#BD1398"&gt;&lt;SPAN&gt;l&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;);&amp;nbsp;&lt;/SPAN&gt;'&lt;/DIV&gt;
&lt;DIV&gt;||';;;;'&lt;/DIV&gt;
&lt;DIV&gt;/* &amp;nbsp;||'filename letter clear;'*/&lt;/DIV&gt;
&lt;DIV&gt;;&lt;/DIV&gt;
&lt;DIV&gt;/* run the code */&lt;/DIV&gt;
&lt;DIV&gt;rc = dosubl(code);&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;U&gt;2)&amp;nbsp;html&amp;nbsp;template example :&lt;/U&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;FONT face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols" size="2"&gt;&lt;SPAN&gt;shorrex_template.h&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols" size="2"&gt;&lt;SPAN&gt;tm&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols" size="2" color="#BD1398"&gt;&lt;SPAN&gt;l&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT face="Calibri,Helvetica,sans-serif,EmojiFont,Apple Color Emoji,Segoe UI Emoji,NotoColorEmoji,Segoe UI Symbol,Android Emoji,EmojiSymbols" size="2" color="#BD1398"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;html&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;head&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;title&amp;gt;&amp;amp;Name.&amp;lt;/title&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/head&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;body&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;h1&amp;gt;&amp;amp;first_name.&amp;lt;/h1&amp;gt; &amp;nbsp;&lt;SPAN&gt;/*macro variable from sas */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;h1&amp;gt;&amp;amp;last_name.&amp;lt;/h1&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;p&amp;gt;&amp;amp;short_desc_1.&amp;lt;/p&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;p&amp;gt;&amp;amp;short_desc_2_1.&amp;lt;/p&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;p&amp;gt;&amp;amp;short_desc_3_1.&amp;lt;/p&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/body&amp;gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;lt;/html&amp;gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396373#M278144</guid>
      <dc:creator>mmkr</dc:creator>
      <dc:date>2017-09-15T14:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: convert HTML to PDF</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396386#M278145</link>
      <description>&lt;P&gt;The basic SAS output to PDF is ODS. You would place procedures that generate output between an ODS PDF destination statement and an ODS PDF Close statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf file="C:\path\myfile.pdf";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=sashelp.class;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods pdf close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would create the PDF file myfile.pdf in the folder C:\path and have the results of the proc print.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are writing raw html then this approach likely won't help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 15:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-HTML-to-PDF/m-p/396386#M278145</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-15T15:18:48Z</dc:date>
    </item>
  </channel>
</rss>

