BookmarkSubscribeRSS Feed
Chiefsfan4ever
Calcite | Level 5
I was wondering if there was a way to upload a picture in a proc template. Then I can use this style for an PDF ODS statement and print out information on top of this picture/logo.

I'm rather new to using the proc template features. Any help will be greatly appreciated.
6 REPLIES 6
Chiefsfan4ever
Calcite | Level 5
Ok I figured out how to get the picture in. Now trying to get it to be center and larger. Any ideas?

proc template;
define style AvivaPrt5;
parent = styles.BarrettsBlue;
style body /
backgroundimage='pic.jpg';

....
....
... Message was edited by: Chiefsfan4ever
Kevin_SAS
SAS Employee
There currently isn't an easy way to manipulate images from a style in PDF. Your best bet would be to do the manipulations in an image editor beforehand.
Chiefsfan4ever
Calcite | Level 5
Ok. Let's say that I do a proc print and then use an ods statement to create a pdf. Is there a way to have the data outputed to allow the background image (manipulated to my likings in image editor) to transpare through it?
Cynthia_sas
SAS Super FREQ
Hi:
This Tech Support note technique worked for me:

http://support.sas.com/kb/24/319.html

Basically, the use of _undef_ turns off all color behind the table.

cynthia
Genty
Calcite | Level 5

Thanks for the link. However, would you know why a part of the picture would appear at the top-right of my document? I have tried different sizes and they all show the background well, but plus a little part at the top-right covering the title sometimes.

Fred

Cynthia_sas
SAS Super FREQ

hi,

That would be a good question for Tech Support.

cynthia

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
  • 6 replies
  • 1692 views
  • 0 likes
  • 4 in conversation