Type0Font
extends PdfObject
in package
Type 0 (composite) font (/Type /Font /Subtype /Type0).
Used for multi-byte character sets such as CJK.
Attributes
- #[RequiresPdfVersion]
- \Phpdftk\Pdf\Core\PdfVersion::V1_2
Table of Contents
Constants
- PDF_TYPE = 'Font'
Properties
- $baseFont : PdfName
- $descendantFonts : PdfArray
- $encoding : PdfName|PdfReference|null
- $generationNumber : int
- $objectNumber : int
- $subtype : PdfName
- $toUnicode : PdfReference|null
Methods
- __construct() : mixed
- toIndirectObject() : string
- Wrap the object in an indirect object structure: X Y obj ... endobj
- toPdf() : string
- Serialize the object's dictionary/value to PDF syntax.
Constants
PDF_TYPE
public
mixed
PDF_TYPE
= 'Font'
Properties
$baseFont
public
PdfName
$baseFont
$descendantFonts
public
PdfArray
$descendantFonts
$encoding
public
PdfName|PdfReference|null
$encoding
= null
$generationNumber
public
int
$generationNumber
= 0
$objectNumber
public
int
$objectNumber
= 0
$subtype
public
PdfName
$subtype
$toUnicode
public
PdfReference|null
$toUnicode
= null
Methods
__construct()
public
__construct(string $baseFontName, PdfArray $descendantFonts[, PdfReference|PdfName|string|null $encoding = null ]) : mixed
Parameters
- $baseFontName : string
- $descendantFonts : PdfArray
- $encoding : PdfReference|PdfName|string|null = null
toIndirectObject()
Wrap the object in an indirect object structure: X Y obj ... endobj
public
toIndirectObject() : string
Return values
stringtoPdf()
Serialize the object's dictionary/value to PDF syntax.
public
toPdf() : string