Type1FontFile
extends PdfStream
in package
Type 1 font program stream — ISO 32000-2 §9.9, Table 124.
Embedded into a FontDescriptor::$fontFile reference. Carries the
classic three-segment Type 1 body: cleartext header, encrypted
portion, and trailer zeros — described by /Length1, /Length2,
/Length3 on the stream dictionary.
Table of Contents
Properties
- $data : string
- $dictionary : PdfDictionary
- $generationNumber : int
- $length1 : int
- $length2 : int
- $length3 : int
- $metadata : PdfReference|null
- $objectNumber : int
Methods
- __construct() : mixed
- setFilter() : void
- Set a filter to encode/decode the stream data.
- toIndirectObject() : string
- Wrap the object in an indirect object structure: X Y obj ... endobj
- toPdf() : string
- Returns the stream body: dictionary, stream keyword, data, endstream.
Properties
$data
public
string
$data
= ''
$dictionary
public
PdfDictionary
$dictionary
$generationNumber
public
int
$generationNumber
= 0
$length1
public
int
$length1
$length2
public
int
$length2
$length3
public
int
$length3
$metadata
public
PdfReference|null
$metadata
= null
$objectNumber
public
int
$objectNumber
= 0
Methods
__construct()
public
__construct(string $bytes, int $length1, int $length2, int $length3) : mixed
Parameters
- $bytes : string
- $length1 : int
- $length2 : int
- $length3 : int
setFilter()
Set a filter to encode/decode the stream data.
public
setFilter(FilterInterface $filter, string $pdfFilterName) : void
Parameters
- $filter : FilterInterface
-
The filter implementation
- $pdfFilterName : string
-
The PDF filter name (e.g. 'FlateDecode', 'ASCII85Decode')
toIndirectObject()
Wrap the object in an indirect object structure: X Y obj ... endobj
public
toIndirectObject() : string
Return values
stringtoPdf()
Returns the stream body: dictionary, stream keyword, data, endstream.
public
toPdf() : string
/Length is injected into the dictionary at serialization time. If a filter is set, the data is encoded before writing.