The SAS Output Delivery System and reporting techniques

ODS - Insert a good quality picture to PDF using ODS

Accepted Solution Solved
Reply
Contributor
Posts: 23
Accepted Solution

ODS - Insert a good quality picture to PDF using ODS

Greetings,

 

1. I'm trying to make my report a bit more fancy. I'm trying to enter a logo picture to the report using the following code:

 

ods pdf file="C:\temp\file - &fdate .pdf" ;
title "^S={font_size=14pt} Report - &fdate ^S={}";
ods escapechar='^';
ods pdf text = "^{style[just=center preimage='C:\temp\Picture.png']}";

 

... (CODE)

 

ods pdf close;

 

2. I'm getting the picture inside the report, but the picture is Pixeled. 

3. How can improve it? I've tried a lot of different pictures in high quality, all of them looks bad in the report.

 

Thanks!


Accepted Solutions
Solution
‎08-23-2016 06:34 AM
Super User
Posts: 9,681

Re: ODS - Insert a good quality picture to PDF using ODS

Use DPI= option, as long as you have a high quality picture.

ods pdf file='/folders/myfolders/x.pdf' dpi=300;
ods escapechar='~';
title '~S={preimage="/folders/myfolders/x.jpg"} xxxxx';
proc print data=sashelp.class;
run;
ods pdf close;


View solution in original post


All Replies
Solution
‎08-23-2016 06:34 AM
Super User
Posts: 9,681

Re: ODS - Insert a good quality picture to PDF using ODS

Use DPI= option, as long as you have a high quality picture.

ods pdf file='/folders/myfolders/x.pdf' dpi=300;
ods escapechar='~';
title '~S={preimage="/folders/myfolders/x.jpg"} xxxxx';
proc print data=sashelp.class;
run;
ods pdf close;


Contributor
Posts: 23

Re: ODS - Insert a good quality picture to PDF using ODS

Hi K,

 

Thanks a lot. Work like a charm.

 

D

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 308 views
  • 0 likes
  • 2 in conversation