SECTION 3.10
187
File Specifications
well. This is accomplished by including a
related files array (PDF 1.3)
as the value
of the
RF
entry in the file specification dictionary. The array has 2
×
n
elements,
which are paired in the form
[
string
1
stream
1
string
2
stream
2
…
string
n
stream
n
]
The first element of each pair is a string giving the name of one of the related files;
the second element is an embedded file stream holding the file’s contents.
In Example 3.21, objects 21, 31, and 41 are embedded file streams containing the
DOS file
SUNSET. EPS
, the Mac OS file
Sunset . eps
, and the UNIX file
Sunset . eps
,
respectively. The file specification dictionary’s
RF
entry specifies an array, object
30, identifying a set of embedded files related to the Mac OS file, forming a
DCS 1.0 set. The example shows only the first two embedded file streams in the
set; an actual PDF file would, of course, include all of them.
Example 3.21
10 0 obj
<< /Type /Filespec
/DOS ( SUNSET. EPS)
/Mac ( Sunset . eps )
/Unix ( Sunset . eps )
/EF << /DOS 21 0 R
/Mac 31 0 R
/Unix 41 0 R
>>
/RF << /Mac 30 0 R >>
>>
endobj
30 0 obj
[ ( Sunset . eps ) 31 0 R
( Sunset . C ) 32 0 R
( Sunset . M ) 33 0 R
( Sunset . Y ) 34 0 R
( Sunset . K ) 35 0 R
]
endobj
% File specification dictionary
% Name of Mac OS file
% Embedded Mac OS file
% Related files array for Mac OS file
% Related files array for Mac OS file
% Includes file Sunset . eps itself