BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
BigFluffyTail
Fluorite | Level 6

I need to get one image in each of the top corners of a pdf.  I thought I could do this by putting both images in a title with spaces in between but it doesn't work.  I can get either of these images to print individually, but when I use both, only the first prints.  The second image is ignored but I don't get an error message.  This is my code:

 

ods escapechar='^';

ods pdf close;

ods pdf file = 'c\sed\NYSAA ELA Grade 3 teacher report 2016.pdf' notoc;

proc report data=NYSAA_2016_Grade3_ela_elements style(header)=[background=white] bypageno=1;

<more statements>

title1 '^S={preimage="c\sed\nysed-logo-text.png"}        ^S={preimage="c\sed\dlm_logo_final_registered.jpg"}';

run;

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Did you try PostImage for the second?

I don't do much with the image insertions but I would thing that Preimage is in one "location" and Postimage in another.

 

Also you might want to consider some justification code to justify the first into left and the second as right.

View solution in original post

3 REPLIES 3
ballardw
Super User

Did you try PostImage for the second?

I don't do much with the image insertions but I would thing that Preimage is in one "location" and Postimage in another.

 

Also you might want to consider some justification code to justify the first into left and the second as right.

BigFluffyTail
Fluorite | Level 6

Thanks.  This worked.

Ksharp
Super User
You should post it at ODS Report forum. 



ods pdf file='/folders/myfolders/x.pdf' style=sasweb;
ods escapechar='~';
title j=l '~S={preimage="/folders/myfolders/x.png" color=white} x'
      j=r '~S={postimage="/folders/myfolders/x.png" color=white} y';
proc print data=sashelp.class;run;
ods pdf close;

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 3 replies
  • 3667 views
  • 0 likes
  • 3 in conversation