Skip to content

PDFType0FontObject Extends PDFIndirectBaseObject ​

Defined in: object/indirect/fontType0.ts:8

Constructor object/indirect/fontType0.ts:48 ​

new PDFType0FontObject(fontBufferInput): PDFType0FontObject

Parameters ​

ParameterType
fontBufferInputany

Returns ​

PDFType0FontObject

Overrides ​

PDFIndirectBaseObject.constructor

Properties ​

PropertyModifierTypeDefault valueOverridesInherited from
_type
fontType0.ts:9
publicstring"fontType0"PDFIndirectBaseObject._type-
cidFont
fontType0.ts:13
publicPDFIndirectBaseObjectundefined--
font
fontType0.ts:11
publicFontundefined--
fontDescriptor
fontType0.ts:15
publicPDFIndirectBaseObjectundefined--
fontFile
fontType0.ts:16
publicPDFIndirectStreamObjectundefined--
fontName
fontType0.ts:10
publicstringundefined--
generation?
baseIndirect.ts:7
publicnumberundefined-PDFIndirectBaseObject.generation
hbBlob
fontType0.ts:18
publicanyundefined--
hbFace
fontType0.ts:19
publicanyundefined--
hbFont
fontType0.ts:20
publicanyundefined--
id?
baseIndirect.ts:6
publicnumberundefined-PDFIndirectBaseObject.id
toUnicode
fontType0.ts:14
publicPDFIndirectStreamObjectundefined--
value
baseIndirect.ts:8
publicanyundefined-PDFIndirectBaseObject.value

Methods ​

getChildren() object/indirect/fontType0.ts:22 ​

getChildren(): (PDFIndirectBaseObject | undefined)[]

Returns ​

(PDFIndirectBaseObject | undefined)[]

Overrides ​

PDFIndirectBaseObject.getChildren

toBuffer() object/indirect/baseIndirect.ts:25 ​

toBuffer(encryptFn?, encryptStreamFn?, compressOverride?): Buffer

Parameters ​

ParameterType
encryptFn?(str) => string
encryptStreamFn?(data) => Buffer
compressOverride?boolean

Returns ​

Buffer

Inherited from ​

PDFIndirectBaseObject.toBuffer

toRef() object/indirect/baseIndirect.ts:16 ​

toRef(): PDFReferenceObject

Returns ​

PDFReferenceObject

Inherited from ​

PDFIndirectBaseObject.toRef

toString() object/indirect/baseIndirect.ts:20 ​

toString(): string

Returns ​

string

Inherited from ​

PDFIndirectBaseObject.toString

fromUrl() object/indirect/fontType0.ts:26 ​

static fromUrl(url): Promise<PDFType0FontObject>

Parameters ​

ParameterType
urlstring

Returns ​

Promise<PDFType0FontObject>

Released under the MIT License.