PDF::API2::Basic::PDF::Dict - PDF Dictionaries and Streams. Inherits from L<PDF::Objind> |
PDF::API2::Basic::PDF::Dict - PDF Dictionaries and Streams. Inherits from the PDF::Objind manpage
There are various special instance variables which are used to look after, particularly, streams. Each begins with a space:
type($type)
Get/Set the standard Type key. It can be passed, and will return, a text value rather than a Name object.
filter(@filters)
Get/Set one or more filters being used by the optional stream attached to the dictionary.
outobjdeep($fh)
Outputs the contents of the dictionary to a PDF file. This is a recursive call.
It also outputs a stream if the dictionary has a stream element. If this occurs then this method will calculate the length of the stream and insert it into the stream's dictionary.
read_stream($force_memory)
Reads in a stream from a PDF file. If the stream is greater than
PDF::Dict::mincache
(defaults to 32768) bytes to be stored, then
the default action is to create a file for it somewhere and to use that
file as a data cache. If $force_memory is set, this caching will not
occur and the data will all be stored in the $self->{' stream'}
variable.
Returns the dictionary, which is itself.
PDF::API2::Basic::PDF::Dict - PDF Dictionaries and Streams. Inherits from L<PDF::Objind> |