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

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

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