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

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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