1PDF::Builder::Basic::PDUFs:e:rFiClotnetrr(i3b)uted PerlPDDoFc:u:mBeunitladteiro:n:Basic::PDF::Filter(3)
2
3
4
6 PDF::Builder::Basic::PDF::Filter - Abstract superclass for PDF stream
7 filters
8
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
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
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 $str
37 not being tidy). Subsequent calls will incorporate this stored state
38 information.
39
40 "$isend == 1" implies that there is no more data to follow. The final
41 state of $f will be that the state information is empty. Error messages
42 are most likely to occur here since if there is required state
43 information to be stored following this data, then that would imply an
44 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.34.0 2022-01-21PDF::Builder::Basic::PDF::Filter(3)