<?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: PDF Watermark conflict in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106266#M9890</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Cynthia, that's definitely what I'm seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where were you last night, when I was banging my ahead against the keyboard.:smileygrin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This morning, I started debugging from scratch with a simpler example, and started commenting out code, thinking "Well, it couldn't be the footnote statement", and there it was....&amp;nbsp;&amp;nbsp; Which is a lesson it feels like I re-learn every 3 months.&amp;nbsp; When faced with odd results, debug calmly and methodically....&amp;nbsp; Last night I had 100 different theories for what could have been wrong (my ods PATH is being reset somewhere, there is a problem with my PROC TEMPLATE code, the .jpg file is corrupted, I should restart the SAS session, etc etc), but was too tired and frustrated to just debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Dec 2012 19:51:22 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2012-12-21T19:51:22Z</dc:date>
    <item>
      <title>PDF Watermark conflict</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106264#M9888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using ODS PDF to create report with a watermark, per: &lt;A href="http://support.sas.com/kb/24/319.html"&gt;http://support.sas.com/kb/24/319.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been working for a while, then it broke suddenly.&amp;nbsp; And after slamming my head against the keyboard for a couple hours last night, it looks like what broke it was the addition of a footnote statement that had in-line formatting!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So here is working code:&lt;/P&gt;&lt;PRE&gt;proc template;
&amp;nbsp; define style watermark;
&amp;nbsp; parent=styles.printer;
&amp;nbsp; style header from header /
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background=_undef_;
&amp;nbsp; style body from document /
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background=_undef_
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; backgroundimage="D:\junk\clocks.jpg";
end;
run;

ods pdf file="test.pdf" style=watermark; 
footnote1 "I have a simple footnote";
proc report data = sashelp.class nowd;
run;
ods pdf close;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I replace the footnote to have one with in-line formatting to add page x of y, the watermark disappears!&lt;/P&gt;&lt;PRE&gt;ods escapechar='^';
footnote1 "Page ^{thispage} of ^{lastpage}";
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone care to replicate the result, and better yet maybe explain why this is happening?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm on SAS 9.3, Win XP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 14:24:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106264#M9888</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-12-21T14:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Watermark conflict</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106265#M9889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; This is a known interaction:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/34/573.html" title="http://support.sas.com/kb/34/573.html"&gt;34573 - Images and URL links might be missing from PDF output when using the LASTPAGE inline function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There are some workarounds listed in the note. You might consider making an RTF file and then doing the creation to PDF from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 15:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106265#M9889</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-21T15:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Watermark conflict</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106266#M9890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much Cynthia, that's definitely what I'm seeing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where were you last night, when I was banging my ahead against the keyboard.:smileygrin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This morning, I started debugging from scratch with a simpler example, and started commenting out code, thinking "Well, it couldn't be the footnote statement", and there it was....&amp;nbsp;&amp;nbsp; Which is a lesson it feels like I re-learn every 3 months.&amp;nbsp; When faced with odd results, debug calmly and methodically....&amp;nbsp; Last night I had 100 different theories for what could have been wrong (my ods PATH is being reset somewhere, there is a problem with my PROC TEMPLATE code, the .jpg file is corrupted, I should restart the SAS session, etc etc), but was too tired and frustrated to just debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 19:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106266#M9890</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-12-21T19:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: PDF Watermark conflict</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106267#M9891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Quentin:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Sorry about the head banging. I've done my share of head banging and of calm debugging and in my opinion, the calm debugging (aided by a search of Tech Support notes on support.sas.com), is the winner in solving problems and also, no bruises on the forehead! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 22:29:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PDF-Watermark-conflict/m-p/106267#M9891</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2012-12-21T22:29:22Z</dc:date>
    </item>
  </channel>
</rss>

