phpdftk API Documentation

Type3Font extends Font
in package

Type 3 font (/Subtype /Type3).

Glyph procedures are defined as PDF content streams inside the font itself rather than using an external font program. Required fields per ISO 32000-2 §9.6.4: FontBBox, FontMatrix, CharProcs, Encoding, FirstChar, LastChar, Widths, and (for tagged PDF) FontDescriptor.

Table of Contents

Constants

PDF_TYPE  = 'Font'

Properties

$baseFont  : PdfName|null
$charProcs  : array<string, PdfReference>
$encoding  : PdfReference|PdfName|null
$firstChar  : int|null
$fontBBox  : PdfArray|null
$fontDescriptor  : PdfReference|null
$fontMatrix  : PdfArray|null
$generationNumber  : int
$lastChar  : int|null
$objectNumber  : int
$resources  : Resources|PdfDictionary|null
$subtype  : PdfName|null
$toUnicode  : PdfReference|null
$widths  : PdfArray|null

Methods

__construct()  : mixed
addCharProc()  : void
Register a glyph procedure by name.
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

$firstChar

public int|null $firstChar = null

$generationNumber

public int $generationNumber = 0

$lastChar

public int|null $lastChar = null

Methods

__construct()

public __construct([string|null $baseFontName = null ]) : mixed
Parameters
$baseFontName : string|null = null

toIndirectObject()

Wrap the object in an indirect object structure: X Y obj ... endobj

public toIndirectObject() : string
Return values
string

toPdf()

Serialize the object's dictionary/value to PDF syntax.

public toPdf() : string
Return values
string

        
On this page

Search results