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