So I have tried a number of ways to get a vector image from some gtl code using ODS statements. It runs fine and creates a chart in any file format I tell it to. The problem is the (very unhelpful) image dump into a vector file. Emf, pdf, sasemf, wmf all render the same way: my chart as a raster image embedded in the otherwise empty vector file! :smileyangry:
So how do I get SAS9.2 to output a vector file and not a vector file with a raster image embedded in it?
System specs:
Windows 7 64-bit (fully patched).
SAS 9.2 TS Level 2M0
W32_VSPro
Thanks,
Adrian.
All SAS 9.2 ODS Graphics creates raster output. It is exactly as you say, an image file embedded in a PDF or EMF file. True scaled vector output is not supported at SAS 9.2. This was addressed with SAS 9.3, where PDF, PS and EMF graphs now contain true vector graphics with following exception.
When the graph contains gradient colors or 3D plots they still contain an image. EMF does not support transparencies. So, for EMF, we fall back to image output if the graph contains transparent plots. Some of these issues will be addressed in the next release.
Might help to show how you generated your files.
All SAS 9.2 ODS Graphics creates raster output. It is exactly as you say, an image file embedded in a PDF or EMF file. True scaled vector output is not supported at SAS 9.2. This was addressed with SAS 9.3, where PDF, PS and EMF graphs now contain true vector graphics with following exception.
When the graph contains gradient colors or 3D plots they still contain an image. EMF does not support transparencies. So, for EMF, we fall back to image output if the graph contains transparent plots. Some of these issues will be addressed in the next release.
Crap. I was afraid of that. My work place isn't rolling out 9.3 until summer.
Nothing to do but wait. Thanks Sanjay.
Just to clarify, there is no way to get a EMF image with transparencies in SAS 9.3?
For SAS 9.3, no. That is because the standard EMF format does not support alpha channels. However, in SAS 9.4, we will be using the EMF Plus format, which does support alpha channels.
Thanks Dan! I really appreciate it.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.