1Text::PDF::Dict(3)    User Contributed Perl Documentation   Text::PDF::Dict(3)
2
3
4

NAME

6       Text::PDF::Dict - PDF Dictionaries and Streams. Inherits from
7       PDF::Objind
8

INSTANCE VARIABLES

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

METHODS

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   $d->copy($inpdf, $res, $unique, $outpdf, %opts)
46       Copies an object. See Text::PDF::Objind::Copy() for details
47
48
49
50perl v5.28.1                      2016-08-24                Text::PDF::Dict(3)
Impressum