BookmarkSubscribeRSS Feed
phil27
Calcite | Level 5
Hi,
I use the following macro to print an image in the header of a pdf document wich contains a footnote too :

%Macro LogoFooterPdf(MyLogoFile, MyFooter1, MyFooter2) / store;
%let MyLogoFile=%BQUOTE(%STR(&MyLogoFile));
%let MyFooter1=%BQUOTE(%STR(&MyFooter1));
%let MyFooter2=%BQUOTE(%STR(&MyFooter2));

ods escapechar='^';

title "^S={just=left preimage='&MyLogoFile'}";

footnote1 "^S={just=left font_size=8pt font_weight=light font_style=roman} &MyFooter1";
footnote2 "^S={just=right font_size=8pt font_weight=light font_style=roman} &MyFooter2";
%Mend;

I call the macro with the following code :

dm log 'clear';
OPTION mlogic symbolgen;
OPTION nodate nonumber;
ods listing close;
ods noproctitle;
ods PDF file='H:\TestOds.pdf' startpage=never;
%LogoFooterPdf(H:\logo.jpg, PROJET, Page ^{thispage} of ^{lastpage});
proc print DATA=sashelp.class; run;

ods PDF close;
ods listing;

The footnotes appear correctly but not the picture.
If I don't make the footnotes appear then the picture can be seen.

If someone knows how to print both picture in the header and the footnotes it would be great.

Thanks ! Message was edited by: phil27
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
I see that you are trying to insert your image -and- the program is using ESCAPECHAR + {thispage}/{lastpage}.

I think that's the issue. This Tech Support note outlines a problem:
http://support.sas.com/kb/34/573.html

I believe this issue does not only apply to SAS/GRAPH images, but also applies to images such as logos. You might want to check with Tech Support to see whether there's any workaround other than taking out the page numbering. As you can see this was reported for SAS 9.1.3, but does not have a "fix" version yet.

cynthia
phil27
Calcite | Level 5
Hi,
Ok, Thanks Cynthia.

Phil. Message was edited by: phil27

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1181 views
  • 0 likes
  • 2 in conversation