1PDF::Builder::Basic::PDUFs:e:rFiClotnetrr(i3b)uted PerlPDDoFc:u:mBeunitladteiro:n:Basic::PDF::Filter(3)
2
3
4

NAME

6       PDF::Builder::Basic::PDF::Filter - Abstract superclass for PDF stream
7       filters
8

SYNOPSIS

10           $f = PDF::Builder::Basic::PDF::Filter->new();
11           $str = $f->outfilt($str, 1);
12           print OUTFILE $str;
13
14           while (read(INFILE, $dat, 4096))
15           { $store .= $f->infilt($dat, 0); }
16           $store .= $f->infilt("", 1);
17

DESCRIPTION

19       A Filter object contains state information for the process of
20       outputting and inputting data through the filter. The precise state
21       information stored is up to the particular filter and may range from
22       nothing to whole objects created and destroyed.
23
24       Each filter stores different state information for input and output and
25       thus may handle one input filtering process and one output filtering
26       process at the same time.
27

METHODS

29       PDF::Builder::Basic::PDF::Filter->new()
30           Creates a new filter object with empty state information ready for
31           processing data both input and output.
32
33       $dat = $f->infilt($str, $isend)
34           Filters from output to input the data. Notice that "$isend == 0"
35           implies that there is more data to come and so following it $f may
36           contain state information (usually due to the break-off point of
37           $str not being tidy).  Subsequent calls will incorporate this
38           stored state information.
39
40           "$isend == 1" implies that there is no more data to follow. The
41           final state of $f will be that the state information is empty.
42           Error messages are most likely to occur here since if there is
43           required state information to be stored following this data, then
44           that would imply an error in the data.
45
46       $str = $f->outfilt($dat, $isend)
47           Filter stored data ready for output. Parallels "infilt".
48
49
50
51perl v5.36.0                      2023-01-23PDF::Builder::Basic::PDF::Filter(3)
Impressum