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

Hi,

        I was uning SAS EG to generate some image and output the images to PDF using ODS PDF. The images look blurry. But when i do the same work in SAS 9.4 for Window, the images was vector images and does not blurry after magnification. My SAS EG was for Linux system. The output difference was like the following picture.

        Can you tell me how to output the vector image using ODS PDF. 

        Thank you very much.

Jinlf_1-1641467718907.png

 

 

1 ACCEPTED SOLUTION
8 REPLIES 8
Jinlf
Calcite | Level 5
My expmple code was:
ods pdf file="/*path*/Test.pdf";
proc sgplot data=sashelp.class;
scatter x=height y=weight;
ellipse x=height y=weight;
run;
ods pdf close;

I need to output the image to PDF using SAS EG, not RTF.
Ksharp
Super User
Add option DPI= .

ods pdf file="c:\temp\Test.pdf" dpi=300;
Jinlf
Calcite | Level 5

The image was more clear when adding option DPI=300, but the image was not vector image. When using SAS for Windows the image was an ector image. I don't know how the difference come about.

Ksharp
Super User

No. You can't , unless you specify it is a vector image (e.g. SVG file).

 

ods pdf file="c:\temp\Test.pdf";
ods graphics on / reset=all outputfmt=svg;
proc sgplot data=sashelp.class;
scatter x=height y=weight;
ellipse x=height y=weight;
run;
ods pdf close;
Jinlf
Calcite | Level 5

Hi,

       This method was usefull in Windows system but not in SAS for Linux. It not suppsort SVG image in Linux.

 

Jinlf_0-1641741347226.png

 

Tom
Super User Tom
Super User

@Jinlf wrote:

Hi,

       This method was usefull in Windows system but not in SAS for Linux. It not suppsort SVG image in Linux.

 

Jinlf_0-1641741347226.png

 


So it is not an Enterprise Guide issue.

What is the version of SAS that your Enterprise Guide project is using?

What operating system is your SAS session running on?

Jinlf
Calcite | Level 5

Hi,

      Thanks for your reply. My SAS version is 9.4 M7 and was running on Linux for X64.

Jinlf_0-1641775238285.png

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

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