Hi,
I am trying to insert a image file (*.jpg) using ODS PDF and in Proc sgrender. The images are logo which i am expecting to appear on all the pages of the output PDF file, one on the header and another on the footnote. The issue is the header image is appearing to be fine on all pages, but the footnote image is only appearing on the 1st page of the output PDF file. Below is the code that i am using, i am not very sure what i am missing, any help would be greatly appreciated.
This code generates 16 pages of PDF file with bar charts. Header image is appearing in all pages, but Footnote image is appearing only on 1st page.
ods pdf file="&outfile\Final_report.pdf" bookmarkgen=no dpi=144 compress=9;
title ; footnote ;
title1 j=l font=arial
j=r "^{style[fontsize=.5pt padding=0pt borderspacing=0pt preimage='C:\Windows\headerimg.jpg'}";
footnote1 " Footnote1";
footnote2 "Footnote2";
footnote3 "Footnote3";
footnote4 j=l "^{style[fontsize=.5pt preimage='C:\Windows\footerimg.jpg'}";
ods graphics/ noborder;
proc sgrender data=repo_data_all template = data_lattice;
dynamic NCOL=3 NMIN=0.10 NMAX=1;
format statvalue percent10.2;
run;
ods pdf close;
Try
footnote4 j=l "^{style[fontsize=.5pt postimage='C:\Windows\footerimg.jpg'}";
See if that works better.
Hi,
I tried to change the option to Postimage, but it still doesn't work. I do not see the footnote image appearing on all the pages.
Thanks,
Vishal
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.