<?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 PDF Template/Style in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59649#M6072</link>
    <description>Hi there.&lt;BR /&gt;
Our company has previously created a CSS sheet for HTML output.  I am wondering how to get similar results out of PDF output (including the use of images, Proc Gchart, and Proc Print).  I know that CSS will be available for PDF in 9.2 but I need a quicker solution.  I have previously tried to modify the template using Proc Template but the log stated that it was unable to write and that the default style "Printer" would be used.&lt;BR /&gt;
&lt;BR /&gt;
How can I make our PDF output look pretty?  Thanks in advance for any and all suggestions.&lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
    <pubDate>Wed, 05 Nov 2008 14:31:23 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-11-05T14:31:23Z</dc:date>
    <item>
      <title>PDF Template/Style</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59649#M6072</link>
      <description>Hi there.&lt;BR /&gt;
Our company has previously created a CSS sheet for HTML output.  I am wondering how to get similar results out of PDF output (including the use of images, Proc Gchart, and Proc Print).  I know that CSS will be available for PDF in 9.2 but I need a quicker solution.  I have previously tried to modify the template using Proc Template but the log stated that it was unable to write and that the default style "Printer" would be used.&lt;BR /&gt;
&lt;BR /&gt;
How can I make our PDF output look pretty?  Thanks in advance for any and all suggestions.&lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Wed, 05 Nov 2008 14:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59649#M6072</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-05T14:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Template/Style</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59650#M6073</link>
      <description>Hi:&lt;BR /&gt;
  Since you are working in EG, most probably with SAS on a server, you will need to have your administrator give you a place on the server to which you can write your style template. This Tech Support note probably describes what you're experiencing:&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/7/484.html" target="_blank"&gt;http://support.sas.com/kb/7/484.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
If you use the code in the note to create a new style template, by default, SAS will try to write altered templates to SASUSER.TEMPLAT location, but this may not be a write-able location on your server. And, if you want others to be able to use the template for PDF, you need a location that is available to everybody, since sometimes SASUSER files are created for every user and other users may not have access to your SASUSER location.&lt;BR /&gt;
&lt;BR /&gt;
This Tech Support note shows the use of the ODS PATH statement to point to a template store on the SAS server: &lt;A href="http://support.sas.com/kb/15/201.html" target="_blank"&gt;http://support.sas.com/kb/15/201.html&lt;/A&gt; -- although the note itself is talking about banner images and HTML, the same type of code would be used for your style template for PDF...something like what is shown below.&lt;BR /&gt;
&lt;BR /&gt;
If you need more help, you might consider having your SAS Administrator contact Tech Support for help with setting up a permanent location for templates on your SAS server.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
** 1) Create the template (only do this once or a few times while;&lt;BR /&gt;
**    you are testing the template code);&lt;BR /&gt;
options nodate nonumber;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
 &lt;BR /&gt;
libname permtmpl 'c:\temp\output';&lt;BR /&gt;
** this would be a server location path and NOT a local location.;&lt;BR /&gt;
** I used a local location for testing because I do not have a server;&lt;BR /&gt;
** copy of SAS to test with.;&lt;BR /&gt;
      &lt;BR /&gt;
ods path (prepend) permtmpl.template(update);&lt;BR /&gt;
                       &lt;BR /&gt;
   proc template;&lt;BR /&gt;
      define style styles.mypdf;&lt;BR /&gt;
         parent=styles.printer;&lt;BR /&gt;
         style Header from Header /&lt;BR /&gt;
            background=pink&lt;BR /&gt;
            font_size=14pt;&lt;BR /&gt;
         style RowHeader from Header /&lt;BR /&gt;
            background=cyan&lt;BR /&gt;
            font_size=12pt;&lt;BR /&gt;
      end;&lt;BR /&gt;
   run;&lt;BR /&gt;
 ods path(remove) permtmpl.template;&lt;BR /&gt;
** clear the ODS PATH and update access mode;&lt;BR /&gt;
** you will reestablish the path below when testing;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
              &lt;BR /&gt;
Now, use the template:&lt;BR /&gt;
[pre]&lt;BR /&gt;
** 2) Now use the template. I would put this testing code into a different;&lt;BR /&gt;
**     .SAS file so that testing could be separated from template creation;&lt;BR /&gt;
**     and then you have code that is easy to pass on to other folks because;&lt;BR /&gt;
**     it does not have template creation code in it.;&lt;BR /&gt;
     &lt;BR /&gt;
   libname permtmpl 'c:\temp\output';&lt;BR /&gt;
** this would be a server location path;&lt;BR /&gt;
          &lt;BR /&gt;
** define the ODS PATH as READ for regular template USE.;&lt;BR /&gt;
** You use the PREPEND option so you do not tamper with any of the;&lt;BR /&gt;
** template or item stores that EG has defined for use.;&lt;BR /&gt;
                   &lt;BR /&gt;
ods path (prepend) permtmpl.template(read);&lt;BR /&gt;
          &lt;BR /&gt;
   ods pdf file="TestStyle.pdf" style=styles.mypdf;&lt;BR /&gt;
            &lt;BR /&gt;
   proc print data=sashelp.class;&lt;BR /&gt;
   run;&lt;BR /&gt;
        &lt;BR /&gt;
   ods pdf close;&lt;BR /&gt;
 ods path(remove) permtmpl.template;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 05 Nov 2008 16:58:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59650#M6073</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-11-05T16:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Template/Style</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59651#M6074</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the in-depth help and quick response.  I'll give it a try.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Matt</description>
      <pubDate>Thu, 06 Nov 2008 13:08:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/PDF-Template-Style/m-p/59651#M6074</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-06T13:08:59Z</dc:date>
    </item>
  </channel>
</rss>

