BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have a 2.5x1.79 image that I would like to appear in a PDF report as the same size. Here is my current title statement:

title1 '^S={just=center preimage="logo.jpg"';

I thought the new scaling options (http://support.sas.com/rnd/base/topics/odsprinter/new9.html#scaling) might work, but specifying x and y values with or without the scale option doesn't appear to have any affect. Can anyone suggest how this could be made to work or suggest an alternative approach to achieve this?

I appreciate any help you can provide,

Francis Harvey
harveyf1@westat.com
1 REPLY 1
DanO_sas_com
SAS Employee
Both of the following should work in v9.1.3SP4, but this syntax is experimental and will not be supported in v9.2. In v9.2 we will use standard URL syntax for scaling options
(e.g. foo.png?width=4in&height=2in&proportional=no). The old options were way too inconsistent. It was easy to put options together that were contradictory and couldn't be resolved in any reasonable way (thanks Kevin).

ods listing close;
ods pdf file="test.pdf";
ods escapechar="^";
title '^S={just=center preimage="logo.png^scale^x=5in}';
proc print style(table)={just=center preimage="logo.png^scale^x=5in"}
data=sashelp.class;run;
ods pdf close;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 1575 views
  • 0 likes
  • 2 in conversation