Vous êtes sur la page 1sur 2

PDF

  ODS pdf Tip Sheet


ODS
ODS
ODS
ODS PDF
PDF
PDF
PDF TipSheet
Tip
Tip
Tip Sheet
Sheet
Sheet
Global
Global
Global
Global Options:
Options:
Options:
Options: PDF
PDF
PDF
PDF Security
Security
Security
Security Action
Action
Action
Action Syntax
Syntax
Syntax
Syntax Column
Column
Columnforfor
for logo,
logo,
logo, address,
address,
address,andand
and trademark
trademark
trademark info.
info.
info.
Column for logo, address, and trademark info.
pdfsecurity=none|
pdfsecurity=none|
pdfsecurity=none| low|
low|
low| high
high
high ods
ods
ods pdf
pdf
pdf <(<ID=>identifier)>
<(<ID=>identifier)>
<(<ID=>identifier)> <action>;
<action>;
<action>;
pdfsecurity=none|
Setting
Setting
Setting this
this
this option
option
option onon
on
low|
thethe
the
high
global
global
global OPTIONS
OPTIONS
OPTIONS
ods pdf <(<ID=>identifier)> <action>;
If Ifyou
you use the ODS PDF statement without
IfIfyou
Setting this option on the global OPTIONS use
use the
the ODS
ODS PDF
PDF statement
statement without
without
you use the ODS PDF statement without
ODSPDF
ODS
ODS PDF
PDF
statement
statement
statement can
cancan control
control
controlthethe
the level
level
level ofPDF
ofofPDF PDF document
document
document an action or options, then itopens
opens the PDF
an
an action or options, then it opens the PDF
an action
action or
oroptions,
options,then
then it
itopens the
the PDF
ODS PDF
statement can control the level of PDF document PDF
encryption.
encryption.
encryption. The The
The default
default
default value
value
value isnone.
isisnone. none. Using
Using
Using lowlow
low
encryption. The default value is none. Using low
high destination
destination
destinationand and creates
andcreates
createsPDF PDF
PDFoutput.output.
output.
gives
gives
gives 40-bit
40-bit
40-bit encryption;
encryption;
encryption; high
high is128-bit
128-bit
isis128-bit encryption.
encryption.
encryption. destination and creates PDF output.
TipSheet
Tip
Tip Sheet
Sheet
gives 40-bit encryption; high is 128-bit encryption.
This
This
This option
option
option requires
requires
requires Adobe
Adobe
Adobe Acrobat
Acrobat
Acrobat5.05.0
5.0andand
and higher.
higher.
higher.
This option requires Adobe Acrobat 5.0 and higher. Tip Sheet
Actions
Actions
Actions
Actions
pdfpassword=(open=”password”
pdfpassword=(open=”password”
pdfpassword=(open=”password” owner=
owner=
owner=
pdfpassword=(open=”password” owner=
”password”)
”password”)
”password”) close
close
close
”password”) close
Setting
Setting
Setting this
this
this onon
on thethe
the global
global
global OPTIONS
OPTIONS
OPTIONS close
close
close thethe
thePDFPDF
PDF destination
destination
destination andand
and thethe
the file
file
file that
that
that
Setting this on the global OPTIONS close the PDF destination and the file that
statement
statement
statement controls
controls
controls thethe
the Owner
Owner
Owner andand
and Open Open
Open is
isisassociated
associated
associated with
with
withit.
it. it.
You You
You cannot
cannot
cannot print
print
printthe the
the
statement controls the Owner and Open is associated with it. You cannot print the
passwords
passwords on aPDF
PDF document. You can set
passwords on a PDF document. You can
passwords on
on aaPDF document.
document. You
You can set
set file
file
file until
until
untilyouyou
you close
close
close the
thethe destination.
destination.
destination.
can set file until you close the destination.
oneone
one or orboth
bothoptions
optionsinin any order. Ifyou
you set
ororboth
both options
options inin any
any order.
order.If
IfIfyou set
set
one any order. you set
both
both
both options,
options,
options, thethe
the passwords
passwords
passwords cannot
cannot
cannot be be
bethethe
the exclude
exclude
exclude exclusions(s)
exclusions(s)
exclusions(s) | all
|| |all
all |none
|none
|none
both options, the passwords cannot be the exclude exclusions(s) all |none
same.
same.
same.
same.
excludes
excludes
excludes output
output
output objects
objects
objects from
from
from thethe
thePDFPDF
PDF
There
There
There areare
are more
more
more global
global
global options
options
optionsforfor
forPDFPDF
PDF excludes output objects from the PDF This
This
This tiptip
tip sheet
sheet
sheet places
places
places frequently
frequently
frequently
This tip sheet places frequently used
usedused
used
There are more global options for PDF destination.
destination.
destination. information
information
informationininone in one place,
oneplace,
place,on on
onone one
onesheetsheet
sheet ofofof
security
security
security available
available
available thatthat
that control
control
control printing,
printing,
printing, destination. information in one place, on one sheet of
security available that control printing, paper,
paper, so
paper,sosoyou you
youdon’t don’t
don’thavehave to search
havetotosearch through
searchthrough
paper, so you don’t have to search through the
throughthe the
the
copying,
copying,
copying, andand
and changing
changing
changing thethe
the contents
contents
contents of ofthe
the
copying, and changing the contents ofofthe
the select
select
select
select
selections(s)
selections(s)
selections(s)
selections(s)
| all
|| |all
all
all
|none
|none
|none
|none
online
online documentation.
onlinedocumentation.
documentation.ItItalso It also gives
alsogives
online documentation. It also gives you
givesyou you
you
PDF PDF
PDF file.
file.
file.ForFor
For a a acomplete
complete
complete description,
description,
description, refer
refer
refer something
something
something totake
tototaketake home,
home,
home, type
type
type in,in,
in, andand
and try.try.
try.
PDF file. For a complete description, refer something to take home, type in, and try.
to tothe
theBase
BaseSAS SAS documentation.
totothe
the Base
Base SAS
documentation.
documentation.
®® ®
selects
selects
selects output
output
output objects
objects
objects for
for
forthethe
thePDFPDF
PDF
SAS® documentation. selects output objects for the PDF ThisThis
This tiptip
tip sheet
sheet
sheet presents
presents
presents the the
the mostmost
most common
common
common
destination.
destination.
destination. This tip sheet presents the most common
Global
Global
Global OPTIONS
OPTIONS
OPTIONS Statement
Statement
Statement Usage
Usage
Usage destination. statements
statements
statements and and
and attributes
attributes
attributes usedused
used increating
creating
inincreating
Global OPTIONS Statement Usage statements and attributes used in creating
output
output
output with with
with the the
the ODS
ODS ODSPDFPDF
PDF statement.
statement.
statement. ThisThis
This
show
show
show output with the ODS PDF statement. This
options
options
options pdfsecurity=low
pdfsecurity=low
pdfsecurity=low show statement
statement
statement opens,
opens,
opens, manages,
manages,
manages, ororor closes
closes
closes the the
the PDF
PDFPDF
options pdfsecurity=low statement opens, manages, or closes the PDF
pdfpassword=(open=”open”
pdfpassword=(open=”open”
pdfpassword=(open=”open” destination,
destination,
destination, which
which
which produces
produces
produces PDF PDF
PDF output,
output,
output, aform
aaform form
pdfpassword=(open=”open” destination, which produces PDF output, a form
writes
writes
writes thethe
the current
current
current selection
selection
selection or orexclusion
exclusion list
ororexclusion
owner=”owner”);
owner=”owner”);
owner=”owner”); list
list ofoutput
output
ofofoutput thatthat
that isread
isisread readbyby
by Adobe
Adobe
Adobe Acrobat
Acrobat
Acrobat and and
and
owner=”owner”); writes the current selection exclusion
®® ® list of output that is read by Adobe Acrobat and
other applications. The ODS PDF statement isisis
for
for
forthethe
the PDFPDF
PDF destination
destination
destination to
toto
thethe
the SAS
SAS
SAS log.
® log.
log. other
other applications.
applications. The
The ODS
ODS PDF
other applications. The ODS PDF statement is
PDF statement
statement
for the PDF destination to the SAS log. partpart
part ofthe
ofofthe the
ODS
ODSODS printer
printer
printer family
family
family ofstatements.
statements.
ofofstatements.
part of the ODS printer family of statements.

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.

Vous aimerez peut-être aussi