CFFFontFile
extends PdfStream
in package
CFF / Type 1C / CIDFontType0C font program stream — ISO 32000-2 §9.9, Table 124. Referenced from `FontDescriptor::$fontFile3`. The /Subtype entry distinguishes the flavor:
/Type1C — bare CFF font program (Type 1 compatible) /CIDFontType0C — CFF font program for CID-keyed fonts /OpenType — OpenType font file (CFF or TTF outlines)
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V1_6
Table of Contents
Properties
- $data : string
- $dictionary : PdfDictionary
- $generationNumber : int
- $metadata : PdfReference|null
- $objectNumber : int
- $subtype : PdfName
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
$metadata
public
PdfReference|null
$metadata
= null
$objectNumber
public
int
$objectNumber
= 0
$subtype
public
PdfName
$subtype
Methods
__construct()
public
__construct(string $bytes[, string $subtype = 'Type1C' ]) : mixed
Parameters
- $bytes : string
- $subtype : string = 'Type1C'
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.