1PDF::API2::Basic::PDF::UDsiecrt(C3o)ntributed Perl DocumPeDnFt:a:tAiPoIn2::Basic::PDF::Dict(3)
2
3
4
6 PDF::API2::Basic::PDF::Dict - PDF Dictionaries and Streams. Inherits
7 from PDF::Objind
8
10 There are various special instance variables which are used to look
11 after, particularly, streams. Each begins with a space:
12
13 stream
14 Holds the stream contents for output
15
16 streamfile
17 Holds the stream contents in an external file rather than in
18 memory. This is not the same as a PDF file stream. The data is
19 stored in its unfiltered form.
20
21 streamloc
22 If both ' stream' and ' streamfile' are empty, this indicates where
23 in the source PDF the stream starts.
24
26 $d->outobjdeep($fh)
27 Outputs the contents of the dictionary to a PDF file. This is a
28 recursive call.
29
30 It also outputs a stream if the dictionary has a stream element. If
31 this occurs then this method will calculate the length of the stream
32 and insert it into the stream's dictionary.
33
34 $d->read_stream($force_memory)
35 Reads in a stream from a PDF file. If the stream is greater than
36 "PDF::Dict::mincache" (defaults to 32768) bytes to be stored, then the
37 default action is to create a file for it somewhere and to use that
38 file as a data cache. If $force_memory is set, this caching will not
39 occur and the data will all be stored in the $self->{' stream'}
40 variable.
41
42 $d->val
43 Returns the dictionary, which is itself.
44
45
46
47perl v5.12.2 2011-01-24 PDF::API2::Basic::PDF::Dict(3)