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.
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?
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
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).
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.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.