BookmarkSubscribeRSS Feed
Griffins
Calcite | Level 5

Dear Users, 

 

I am trying to output my graph image in a *.eps file format.

However, I was getting the ERROR message ERROR: Unsupported image file format for output file.

Therefore, I am using  EPSI image format and that ran successfully. 

The issue is that when I try to open the *.epsi file using Adobe Acrobat, I am getting an error. 

 

Please let me know if there is a way I could output *.eps image format using ODS GRAPHICS, otherwise, please let me know if there is any workaround to get rid of the error showing up while opening it using Adobe Acrobat. 

 

For some reason filename statement and gsfname goptions is not working for me and therefore I am using ods listing gpath. 

 

The code and the error are attached. 

 

goptions reset=all ftext="Helvetica";
ods listing gpath="&somepath";

ods graphics on/reset=index 
                imagename="XX"                                     
                noborder 
                scale=on
                antialiasmax=1500
                imagefmt=epsi; 

proc sgplot data = XXX noautolegend; 
reg x=xvar y=yvar /markerattrs=(symbol=plus);
quit;    		 
ods graphics off;
4 REPLIES 4
DanH_sas
SAS Super FREQ

I took your example and generated a regression plot using the EPS format. I was able to view it on Windows using GhostView without any problems (and using Okular on Linux). However, as you said, Acrobat was not able to read it. If Acrobat is going to be your viewer for this output, can you set the IMAGEFMT to PDF instead, or is EPS a requirement?

Griffins
Calcite | Level 5

Dear Dan, 

 

Are you saying that using the same code that I have used, you were able to generate a *.eps image format file? not *.epsi but just *.eps? I really want to know how, because with Adobe Acrobat, I could open *.eps image format

DanH_sas
SAS Super FREQ

No, my apologies. It was EPSI. I could view it in the other viewers I listed, but not in Acrobat. Based on the support site for Adobe, it appears EPSI is not supported.

Griffins
Calcite | Level 5

ok, thank you. I presume that we cannot output a *.eps image format with 9.2 and later that cannot be opened in Acrobat, I hope this could be fixed somehow. 

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

Register now!

How to Concatenate Values

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.

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
  • 4 replies
  • 1448 views
  • 0 likes
  • 2 in conversation