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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1908 views
  • 0 likes
  • 2 in conversation