Académique Documents
Professionnel Documents
Culture Documents
ForFor
For
SAS Institute complete
complete
complete
Inc. information
information
information
World refer
refer
refer
Headquarters tothe
totothe the
For 8000
complete®www.sas.com/offices
®information
® refer to the
Base
+1 919 677 Base
Base SASSAS
SAS® 9.2 9.2
9.2 documentation
documentation
documentation atatat
Base SAS 9.2 documentation at
http://support.sas.com/v9doc
http://support.sas.com/v9doc
http://support.sas.com/v9doc
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks
http://support.sas.com/v9doc
of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and
product names are trademarks of their respective companies. Copyright © 2013, SAS Institute Inc.
All rights reserved. 556036_02.10
ODS
ODS
PDF
ODS PDF
Tip
ODS PDF
ODSPDF
PDFTip
TipSheet
TipSheet
Sheet
Sheet
Basic
Basic
BasicUsage
BasicUsage
Usage
Usage ODS
ODS
ODSPDF
ODS PDF
PDFExample
PDFExample
Example
Example PDF
PDF
PDFTable
PDFTable
Tableofofof
Table Contents
ofContents
Options
Contents
ContentsOptions
Options
Options
PDF
PDF
PDFMetadata
PDFMetadata
MetadataOptions
MetadataOptions
Options
Options
ods ods
ods pdf
odspdf
pdf<option(s)>;
pdf<option(s)>;
<option(s)>;
<option(s)>; This
This
code
This code
This snippet
code
codesnippet
will
snippet
snippetwill
create
will create
will thethe
create the
createoutput
output
the
outputfilefile
output filefile pdftoc=n
pdftoc=n
pdftoc=n
pdftoc=n
… …procedure
… procedure
…procedure
name
procedure name
name… …… …
name “output.pdf”
“output.pdf”
with
“output.pdf”
“output.pdf”with
awith
with simple
aasimple
simple
table
a simpletable
of
table five
table
ofoffive
five
of five author=”author-text”
author=”author-text”
author=”author-text”
author=”author-text”
ods ods
ods pdf
odspdf
pdfclose;
pdfclose;
close;
close; controls
controls
thethe
controls
controlsthe
table
thetable
table ofof
contents
ofcontents
table ofcontents
node
contentsnode
node
node
observations.
observations.
observations.
observations.
inserts
inserts
thethe
inserts
inserts the
text
thetext
string
text string
text that
string that
string you
that you
that
you specify
you specify
specifyasasasas
specify expansion
expansion
expansion ofof
expansion aofPDF
aofaPDF
PDFfile.
a PDF file.
file.
file.
Common
Common
CommonOptions
CommonOptions
Options
Options odsods
odspdf
odspdf
file="output.pdf";
pdfpdffile="output.pdf";
file="output.pdf";
file="output.pdf"; author,
author,
author,into
author, into
intothe
intothe
themetadata
metadata
the
metadata ofof
metadata aoffile.
aofafile.
file.
a file.
proc
proc
procprint
procprint
printdata=sashelp.class(obs=5);
print data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
run;
run;
run;
run; n specifies
nnspecifies
nspecifies thethe
specifies the
level
the level
level ofof
level node
ofnode
ofnode
expansion
node expansion
expansion
expansioninininin
anchor=”anchor-name”
anchor=”anchor-name”
anchor=”anchor-name”
anchor=”anchor-name” odsods
odspdf
odspdf
close;
pdfpdfclose;
close;
close; keywords=”keywords-text”
keywords=”keywords-text”
keywords=”keywords-text”
keywords=”keywords-text” thethe
the
table
the table
tableofof
table contents.
ofcontents.
ofcontents.
contents.The The
The larger
The larger
larger thethe
larger thethe
specifies
specifies
specifiesthethe
specifies the
root
root
the name
root
rootname
nameforfor
name for
thethe
foranchor
the anchor
the
anchortagtag
anchor tag
tag inserts
inserts
insertsinto
into
inserts the
into the
intooutput
the output
the file’s
output
outputfile’s
metadata,
file’s metadata,
file’s
metadata, a aa a
metadata, number,
number,
number,
number,thethe
the
greater
thegreater
greater thethe
greater the
node
the node
node expansion.
node expansion.
expansion.
expansion.
that
that
identifies
that identifies
that
identifieseach
identifies each
each output
eachoutput
outputobject.
outputobject.
object.
object. string
string
stringofof
keywords.
ofkeywords.
string ofkeywords.
The
keywords. The
Thekeywords
The keywords
keywords enable
keywords enable
enable a aa a
enable For For
For example,
For example,
example,
example,n=0n=0n=0is
n=0 complete,
isiscomplete,
iscomplete,
complete,fullfull
fullfull
document
document
document management
document management
management system
management system
systemtoto
systemdo
todo
todo
topic-
dotopic-
topic-
topic- expansion
expansion
expansion
expansionofof all
ofall
ofall
nodes,
allnodes,
nodes, while
nodes, while
while n=3
while n=3
n=3 limits
n=3 limits
limitsthethe
limits the
the
columns=n
columns=n
columns=n
columns=n based
based
based searches.
basedsearches.
searches.
searches. expansion
expansion
expansion
expansiontoto the
tothe
tothe
first
the first
firstthree
firstthree
three nodes.
threenodes.
nodes.
nodes.
specifies
specifies
thethe
specifies
specifiesthe
number
number
the
number ofof
number columns
ofcolumns
ofcolumns
toto
columnscreate
tocreate
tocreate
create
onon
on
each
each
on
eachpage
eachpage
page ofof
pageoutput.
ofoutput.
ofoutput.
output. subject=”subject-text”
subject=”subject-text”
subject=”subject-text”
subject=”subject-text”
inserts
inserts
thethe
inserts
insertsthe
texttext
the string
text
textstring
that
string that
string you
that you
that
youspecify
you specify
specifyasas
specifythe
asthe
asthe
the
contents=no
contents=no
contents=no
contents=no| yes
| |yes
yes
| yes subject,
subject,
into
subject,
subject, into
intothe
intothe
themetadata
themetadata
metadataofof
metadataaoffile.
aofafile.
file.
a file.
controls
controls
controlsthethe
controls the
generation
generation
the
generation ofof
generationaofprintable
aofaprintable
printable
table
table
a printable
table
table
ofof
contents.
ofcontents.
ofcontents.
contents. title=”title-text”
title=”title-text”
title=”title-text”
title=”title-text”
inserts
inserts
inserts thethe
inserts the
text
text
the string
text
textstring
stringthat
that
string
thatyou
that you
you specify
youspecify
asas
specify the
asthe
specify asthe
the
file=”filename”
file=”filename”
file=”filename”
file=”filename” title,
title,
into
title, into
title,
into the
intothe
metadata
the metadata
the
metadata ofof
metadata aoffile.
aofafile.
file.
a file.
specifies
specifies
specifiesthethe
specifies the
name
name
the
name ofof
name the
ofthe
ofthe
file
thefile
that
file that
file will
that will
that
will
will ThisThis
Thiscode
Thiscode
codesnippet
codesnippet
snippetwill
snippetwill
create
will create
will
createthethe
the
createoutput
output
the
output filefile
output filefile
“style.pdf”
“style.pdf”
“style.pdf” with
“style.pdf” with
withawith
simple
aasimple
simple
table
a simple table
of
table five
table
ofoffive
five
ofobservations
observations
five
observations
observations PDF
PDF
PDFCompression
PDFCompression
CompressionOption
CompressionOption
Option
Option
contain
contain
containthethe
contain the
output
theoutput
outputtables.
outputtables.
tables.
tables. using
using
usingthethe
usingthe
style
style
the template
style template
style
template“Ocean”:
template “Ocean”:
“Ocean”:
“Ocean”:
startpage=never
startpage=never
startpage=never | no
startpage=never | |no
no
| now
| |now
no now
| yes
| now| |yes
yes
| yes odsods
odspdf
odspdf
file="style.pdf"
pdfpdffile="style.pdf"
file="style.pdf" style=Ocean;
file="style.pdf" style=Ocean;
style=Ocean;
style=Ocean; compress=n
compress=n
compress=n
compress=n
proc
proc
procprint
procprint
printdata=sashelp.class(obs=5);
print data=sashelp.class(obs=5);
data=sashelp.class(obs=5);
data=sashelp.class(obs=5); notoc
notoc
notoc
notoc
controls
controls
page
controls page
controls
pagebreaks.
pagebreaks.
breaks.
breaks. controls
controls
thethe
controls
controlsthe
compression
thecompression
compression ofof
compression aofPDF
aofaPDF
PDFfile.
a PDF file.
file.
file.
run;
run;
run;
run; specifies
specifies
specifiesthat
specifies that
thatODS
thatODS
ODS PDF
ODS PDF
PDFomit
PDF omit
thethe
omit
omitthe
table
table
the ofofofof
table
table
odsods
odspdf
odspdf
close;
pdfpdfclose;
close;
close; Compression
Compression
Compression
Compressionreduces
reduces
thethe
reduces
reducesthe
size
thesize
size of
sizethe
ofthe
of ofthe
file.
thefile.
file.
file.
contents
contents
contentsthat
contents that
thatis
thatproduced
isproduced
is isproduced
byby
producedby
default.
default.
by
default.
default.
style=style-definition
style=style-definition
style=style-definition
style=style-definition
specifies
specifies
thethe
specifies
specifiesthe
style
style
the definition
style definition
style toto
definition use.
touse.
definition touse.
use. n specifies
nnspecifies
nspecifiesthethe
specifies the
level
level
the
levelofof
compression.
levelofcompression.
ofcompression.
compression. The The
The The
bookmarkgen=
bookmarkgen=
bookmarkgen=
bookmarkgen= nono
no
| yes
| |yes
no yes
| yes
larger
larger
largerthethe
larger the
number,
thenumber,
number, thethe
number, the
greater
thegreater
greaterthethe
greaterthethe
controls
controls
controls thethe
controls the
generation
generation
the
generation ofof
generation bookmarks
ofbookmarks
ofbookmarks
inin
bookmarksainaina a
text=”text-string”
text=”text-string”
text=”text-string”
text=”text-string” compression.
compression.
compression.
compression. ForFor
example,
ForFor example,
example, n=0
example, n=0
n=0 is
n=0isisis
PDFPDF
PDF file.
PDF file.
file.
file.
inserts
inserts
a text
inserts aatext
inserts text
a string
textstring
stringinto
into
string your
into your
into output.
your output.
your
output.
output. completely
completely
completely
completely uncompressed,
uncompressed,
uncompressed,
uncompressed, and n=9
and
andand n=9
n=9 is
n=9 the
isisthe
isthe
the
maximum
maximum
maximum
maximum compression
compression
compression
compressionlevel.
level.
level.The
level.The
The default
The default
default
default
bookmarklist=
bookmarklist=
bookmarklist=
bookmarklist= hide hide
hide | none
hide| |none
none | show
| none | |show
show
| show
uniform
uniform
uniform
uniform value
value
value
value n=6.
is is isn=6.
isn=6.n=6.
specifies
specifies
specifieswhether
specifies whether
whether oror
whether not
ornot
ornot
tonotgenerate
togenerate
to togenerate and
generate and
andand
ensures
ensures
uniform
ensures uniform
ensures
uniform table
uniform table
width
table
tablewidth
from
width
widthfrom
frompage
frompage
totototo
page
page display
display
displaythethe
display the
list
thelist
oflist
list bookmarks
ofofbookmarks
ofbookmarks
bookmarks forfor
for
afor
PDF
aaPDF
PDF
a PDF
page
page
pagewithin
pagewithin
withina single
aasingle
within single
table.
a singletable.
table.
table. This
This
Thisoption
option
This will
option will
option take
will take
will precedence
take precedence
take
precedence over
precedence over
thethe
over
overthe
the
DEFLATION
DEFLATION
DEFLATION
DEFLATION global
global
option.
global option.
global
option.
option. file.
file.
file.
file.