- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Relatively new to SAS and having issues with resolution of PNG and JPG images when they are exported to PDF reports.
Have tried using the suggestions I was able to find on this forum and elsewhere but still having issues with resolution in the finished product.
Image is crisp in both png and jpg but when using the following, the image ends up pixelated on the PDF. It does not happen all of the time depends on the image being used.
%let Image='Drive:\folder\folder\folder/LOGO_1.PNG' dpi=300;
Same problem here
ODS LAYOUT ABSOLUTE;
ODS Region Y=0.1in X=0.1in;
ODS text= "~{style[preimage='Drive:\folder\folder\folder/LOGO_1.PNG']}";
ODS Region Y=0.38in X=2.5in;
ODS text= "~{style[color=BL Font_size=16pt Font_weight=bold]&ANAME}";
ODS text= "~{style[color=BL Font_size=16pt Font_weight=bold]Report name}";
ODS text= "~{style[color=BL Font_size=16pt]&monthfull &Y}";
Any suggestions would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You don't show where you might be attempting to use any image resolution setting so it is hard to make pointed suggestions.
Generally the image settings such as DPI in SAS only relates to graphs created by SAS. Are you referencing an image made by something else and expecting SAS to re-build the image to a different resolution?
Also, does your log include any notes or messages about image resolution and/or memory constraints when creating/using the images?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the tip regarding the DPI= option.
I was able to bump up the resolution on the originals and they coming in sharper now.
Thanks for the quick reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
The documentation states that when importing image files to a PDF document, the image dpi should match the dpi specified when the PDF was created (by default, it is 150 dpi).
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
specifies the image resolution for output files.
ods pdf file='...........' dpi=300 ;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thank you for your reply.
I was able to boost the resolution on the images I am pulling into the process and exporting to the PDF.
This issue is now solved.