BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kansas
Calcite | Level 5

Hi.

I'm using the following syntax inside a ods layout to insert an image. (code portion was found in the white paper given in this link).

One thing i noticed was image size slightly increases and it results in a slightly blurred image. Im not using any scalling. (I have used JPEGQUALITY=100 in the options)

ods pdf file="c:\test.pdf" style=<stylename>;

ods layout start width=8.49in height=10.99in;

ods region x = 0.50 in y = 0.25 in;

ods text = "^{style[preimage='c:\myimage.jpg']}";

ods layout end;

ods pdf close;

I dont know why the image size increases.

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
ScottH_SAS
SAS Employee

What is the DPI of the image ... "myimage.jpg"  ?

What version of SAS are u running?

We'll figure it out Smiley Happy

Scott

View solution in original post

3 REPLIES 3
Cynthia_sas
SAS Super FREQ

Hi:

  ODS LAYOUT and ODS REGION are still "pre-production" -- so I am not sure what is happening to cause the behavior you describe. If no one else has any ideas on what is causing your issue, you might want to open a track with Tech Support on this question.

cynthia

ScottH_SAS
SAS Employee

What is the DPI of the image ... "myimage.jpg"  ?

What version of SAS are u running?

We'll figure it out Smiley Happy

Scott

kansas
Calcite | Level 5

you are awesome Scott !!!

It took some few days to realize that the image scalling was due to default DPI setting in ODS PDF and had no connection with ods layout or region.

I specified the correct DPI at the ods pdf statement and everything worked percfectly.

Thanks everyone.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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