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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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