Valid in: | Anywhere |
Category: | ODS: Third-Party Formatted |
Restriction: | PDF does not support double-byte Type1 fonts. |
Notes: | By default, the ODS PDF statement creates Scalable Vector
Graphics. Scalable Vector Graphics (SVG) is an XML language for describing
two-dimensional vector graphics.For information about scalable vector graphics, see Using Scalable Vector Graphics in SAS/GRAPH: Reference. You can add Drill-Down graphs in your PDF file. For detailed information about drill-down graphs and about writing graphs to a PDF file, refer toWriting Your Graphs to a PDF File in SAS/GRAPH: Reference. |
Tip: | The PDF driver that SAS uses does not recognize all Microsoft Windows fonts. You must enter any such fonts into the SAS registry in order for SAS to find them. See The SAS Registry in SAS Language Reference: Concepts. |
The following actions are available for the ODS PDF statement:
tabulate
.
The second anchor is named tabulate1
;
the third is named tabulate2
, and so
on.
Specifying new anchor names at various points in your program is useful when you want to link to specific parts of your PRINTER output. Because you can control where the anchor name changes, you know in advance what the anchor name will be at those points.
The AUTHOR= option takes effect only if specified at the opening of a file.
NOBOOKMARKLIST is an alias for BOOKMARKLIST=NONE | NO | OFF.
BOOKMARKLIST is an alias for BOOKMARKLIST=SHOW | YES | ON.
This option has an effect only when creating PDF, PDFMARK, PS output.
The COMPRESS= option takes effect only if specified at the opening of a file.
The COMPRESS= option overrides the UPRINTCOMPRESSION option. If COMPRESS= is specified, the UPRINTCOMPRESSION system option is then queried. If the system option is off, it will be turned on for this one PDF statement and the PDF file will be compressed. When compression is complete, the UPRINTCOMPRESSION system option is again enabled for all other files to use. For more information, see the UPRINTCOMPRESSION system option.
You must specify media-type next to the file-specification specified by the CSSSTYLE= option.
SYSPRINT= | if you are using the Windows operating environment and do not specify any of the following options: PCL, PDF, PDFMARK, PS, or SAS. |
PRINTERPATH= | in all other cases. |
The KEYWORDS= option takes effect only if specified at the opening of a file.
REPORT.PS
.
Additional body files are named REPORT1.PS
, REPORT2.PS
,
and so on.
The NEWFILE= option cannot be used if you are sending output to a physical printer.
Example:
FILE= 'MAY5.PS'
0
results
in a fully expanded table of contents, while PDFTOC=2
results
in a table of contents that is expanded to two levels.
For instructions on making your own user-defined style definitions, see TEMPLATE Procedure: Creating a Style Template.
The SUBJECT= option takes effect only if specified at the opening of a file.
The TITLE= option takes effect only if specified at the opening of a file.
Features: |
|
Other features: |
PROC FORMAT PROC SORT PROC REPORT NOBYLINE|BYLINE system option #BYVAL parameter in titles |
Data set: | Grain_Production |
proc sort data=grain_production; by year country type; run;
ods HTML close;
ods pdf file='grain-1.pdf' pdftoc=2; ods pdf (id=journalstyle) style=journal file='grain-2.pdf' pdftoc=3;
options nobyline nodate; title 'Leading Grain-Producing Countries'; title2 'for #byval(year)';
proc report data=grain_production nowindows; by year; column country type kilotons; define country / group width=14 format=$cntry.; define type / group 'Type of Grain'; define kilotons / format=comma12.; footnote 'Measurements are in metric tons.'; run;
options byline; title2;
proc tabulate data=grain_production format=comma12.; class year country type; var kilotons; table year, country*type, kilotons*sum=' ' / box=_page_ misstext='No data'; format country $cntry.; footnote 'Measurements are in metric tons.'; run;
ods pdf close; ods pdf(id=journalstyle) close;
ods html;
ods pdf file='grain-1.pdf' pdftoc=2; ods pdf (id=journalstyle) style=journal file='grain-2.pdf' pdftoc=3;
proc report data=grain_production nowindows; by year; column country type kilotons; define country / group width=14 format=$cntry.; define type / group 'Type of Grain'; define kilotons / format=comma12.; footnote 'Measurements are in metric tons.'; run;
proc tabulate data=grain_production format=comma12.; class year country type; var kilotons; table year, country*type, kilotons*sum=' ' / box=_page_ misstext='No data'; format country $cntry.; footnote 'Measurements are in metric tons.'; run;