Creating SVG (Scalable Vector Graphics) Files
Using Universal Printing
Overview of Scalable Vector Graphics in SAS
Scalable Vector Graphics in SAS
Scalable Vector Graphics (SVG) is an XML language for describing two-dimensional
vector graphics. SAS creates SVG documents based on the W3C recommendation for
SVG documents. SAS SVG documents are created using the UNICODE standard
encoding UTF-8.
SAS can create SVG documents by using Universal Printers and SAS/GRAPH device
drivers. Because SAS/GRAPH SVG device drivers use the SVG Universal Printers, this
section contains some information about creating SVG documents using SAS/GRAPH.
Most often in SAS, the SVG Universal Printers and device drivers are used to create
graphs. Graphs can be created by using ODS Graphics or SAS/GRAPH. You can also
use the SVG Universal Printers to show tables or reports that you create as SVG
documents.
Several ODS destinations (EPUB, HTML, HTML5, LISTING, and PRINTER
destinations) can be used to create SVG documents. SVG is the default Universal Printer
and device driver for the ODS HTML5 destination.
SVG documents can be stand-alone files or integrated within an HTML5 or EPUB file.
A stand-alone SVG document can be referenced as a link target, referenced as an
embedded file in an HTML document, or referenced as a CSS2 or XSL property. For
information about embedding SVG documents in web pages, see the topic on using SVG
documents in web pages in the SVG 1.1 specification on the W3 SVG website http://
www.w3.org/TR/SVG.
Multi-page SVG documents can be animated in Base SAS and SAS/GRAPH. When you
create animated SVG documents in Base SAS using Universal Printing without
specifying any ODS Graphics procedures, the animated SVG documents appear as a
slide show or an animated PowerPoint presentation. For more information, see “Creating
Animated GIF Images and SVG Documents” on page 343.
If you have SAS/GRAPH installed, your SVG documents can contain links and pop-up
text boxes.
The information provided here is limited to creating SVG documents using Universal
Printers in Base SAS and ODS Graphics. For more information about creating SVG files
in SAS/GRAPH, see “Enhancing Web Presentations with Chart Descriptions, Data Tips,
and Drill-Down Functionality ” in SAS/GRAPH: Reference.
For detailed information about the SVG standard, see the W3 documentation at http://
www.w3.org/TR/SVG.
SVG Terminology
SVG canvas
the space upon which the SVG document is rendered.
314 Chapter 15 • Printing with SAS