phpdftk API Documentation

RegisteredFont
in

A font that has been registered with a writer and assigned a resource name. ContentStream::setFont() accepts this so callers can pass UTF-8 to showText() and have the encoder do the byte-level translation for them.

The encoder is optional — CID/Type0 fonts return null and continue to use the showTextHex() / showUnicodeText() path.

Table of Contents

Methods

getResourceName()  : string
getTextEncoder()  : TextEncoder|null

Methods

getResourceName()

public getResourceName() : string
Return values
string

        
On this page

Search results