destinations used by the ODS PRINTER statement are described in the “ODS PRINTER
Statement ” in SAS Output Delivery System: Users Guide.
The Output Delivery System (ODS) uses Universal Printing for the following ODS
statements.
Table 15.2 ODS Statements That Use Universal Printing
ODS Statement Description
Document Formats
ODS PRINTER PRINTER= option Uses the selected printer.
ODS PDF statement
Uses the Universal Printing PDF printer.
*
ODS PS statement Uses the Universal Printing PostScript Level 1
printer.
ODS PCL statement Uses the Universal Printing PCL5 printer.
Graphic Formats
ODS LISTING Uses the selected printer.
ODS HTML Use with ODS Graphics and SAS/GRAPH.
ODS HTML5 Use with ODS Graphics and SAS/GRAPH.
ODS RTF Use with ODS Graphics and SAS/GRAPH.
ODS EPUB Use with ODS Graphics and SAS/GRAPH.
*
You must have SAS/GRAPH installed to create drill-down regions in a graph created by the PDF
Universal Printer. For more information, see “Adding Drill-Down Graphs in Your PDF File” in
SAS/GRAPH: Reference.
Windows Specifics
In the Windows operating environment, the ODS PRINTER destination uses the
Windows system printers unless SAS is started with the UNIVERSALPRINT system
option, or when you specify a printer with the PRINTERPATH= system option. If
Universal Printing is enabled in Windows, SAS overrides the use of the Windows
system printer and causes ODS to use Universal Printing. To return to Windows
printing, set the PRINTERPATH= system option to a null string: PRINTERPATH=""
(double quotation marks with no space between them).
For more information about ODS, see SAS Output Delivery System: Users Guide.
Specifying the Page Orientation for Universal Printing Documents
You can specify the page orientation for each page of a multiple-page document that is
created by a Universal Printer. You can also use page orientation for documents that are
created for the ODS LISTING, PCL, PDF, PRINTER, and PS destinations.
The ORIENTATION= system option has four values: PORTRAIT, LANDSCAPE,
REVERSEPORTRAIT, and REVERSELANDSCAPE. To change the orientation of a
244 Chapter 15 Printing with SAS
document page, specify the OPTIONS statement, using the ORIENTATION= system
option, between the steps that create output to change the page orientation.
Note: The EMF, GIF, PNG, and TIFF Universal Printers do not support multiple-page
documents. These printers also do not support the REVERSELANDSCAPE and the
REVERSEPORTRAIT orientations.
The following example creates a four-page SVG document. The orientation is changed
between landscape and portrait for each page in the document. The OPTIONS
statements are highlighted:
options nodate nonumber;
ods printer printer=svgview file='orientation.svg' style=Ocean;
title 'Demonstration of Page Orientation Changes in a Document';
footnote 'PROC SGPLOT in Landscape Orientation';
options orientation=landscape;
proc sgplot data=sashelp.class;
vbar age;
run;
options orientation=portrait;
footnote 'PROC PRINT in Portrait Orientation';
proc print data=sashelp.class;
run;
options orientation=landscape;
footnote 'PROC SGSCATTER in Landscape Orientation';
proc sgscatter data=sashelp.cars;
matrix mpg_city enginesize horsepower /
diagonal=(histogram kernel);
run;
options orientation=portrait;
footnote 'PROC MEANS in Portrait Orientation';
proc means data=sashelp.cars n mean;
var mpg_city enginesize horsepower;
run;
ods printer close;
The following output shows the third and fourth pages of the document. The third page
has a landscape orientation and the fourth page has a portrait orientation.
Universal Printing 245
Figure 15.1 Page Three of an SVG Document Showing the Landscape Orientation
246 Chapter 15 Printing with SAS
Figure 15.2 Page Four of an SVG Document Showing the Portrait Orientation
For more information, see “ORIENTATION= System Option” in SAS System Options:
Reference.
Color Support for Universal Printers
Universal Printers and the Color Spaces They Support
All Universal Printers support 24-bit RGB colors. Most printers support 32-bit CMYK
colors or 32-bit RGBA (transparency) colors. The following table lists the Universal
Printers and their respective color support.
Table 15.3 Color Support for Universal Printers
Universal Printer Color Support
Supports
Transparency
EMF RGBA Yes
Universal Printing 247
Universal Printer Color Support
Supports
Transparency
EMFDual If the EMF viewer supports the EMFPlus
format, the color support is RGBA
If the EMF viewer does not support
EMFPlus format, the color support is
RGBA for bitmap images and RGB for
vector elements.
Yes
Yes, for bitmap
images
SASEMF RGBA only for bitmap images. RGB for
vector elements.
Yes, for bitmap
images
GIF RGBA Yes
PCL5c
*
RGBA Yes
PDF CMYK and RGBA Yes, for RGBA
colors
PNG RGBA Yes
PostScript CMYK and RGB
RGBA for GIF images
**
No
No
SVG RGBA Yes
TIFF RGBA Yes
TIFFk CYMK No
*
PCL4 and PCL5 Universal Printers support only monochrome printing.
**
The PostScript Universal Printer recognizes RGBA colors but transparency is not supported.
For information about CYMK, RGB, and RGBA colors, see “CMYK Colors” on page
248 and “RGB and RGBA Colors” on page 250.
CMYK Colors
CMYK colors setting specify eight hexadecimal characters with a value of 0–255 to
specify the amount of cyan, magenta, yellow, and black ink. Use your printers Pantone
Color Lookup table to find the CMYK values for your printer. If you specify an
unsupported color, such as a CMYK color with an EMF printer, the color is converted to
a color that is supported.
You can specify CMYK colors where ever colors can be set (for example, in the PROC
PRINT statement STYLE option or in the TITLE statement).
Preface the hexadecimal number with a CMYK or a K. Here are some examples of
CMYK colors that you can set in SAS:
248 Chapter 15 Printing with SAS
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.35.255