- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You could raise a ticket for SAS technology support ,
Or could make DPI= bigger
ods pdf file="c:\temp\Test.pdf" dpi=3000;
https://blogs.sas.com/content/sgf/2021/08/17/editable-emf-graph-output/
https://blogs.sas.com/content/sgf/2015/11/20/how-to-increase-the-resolution-of-your-sas-graphics-out...
https://blogs.sas.com/content/sgf/2014/12/19/have-you-created-scalable-vector-graphics-with-sas/
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
ods pdf file="c:\temp\Test.pdf" dpi=300;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This method was usefull in Windows system but not in SAS for Linux. It not suppsort SVG image in Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
@Jinlf wrote:
Hi,
This method was usefull in Windows system but not in SAS for Linux. It not suppsort SVG image in Linux.
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for your reply. My SAS version is 9.4 M7 and was running on Linux for X64.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
You could raise a ticket for SAS technology support ,
Or could make DPI= bigger
ods pdf file="c:\temp\Test.pdf" dpi=3000;
https://blogs.sas.com/content/sgf/2021/08/17/editable-emf-graph-output/
https://blogs.sas.com/content/sgf/2015/11/20/how-to-increase-the-resolution-of-your-sas-graphics-out...
https://blogs.sas.com/content/sgf/2014/12/19/have-you-created-scalable-vector-graphics-with-sas/