Doc.loadType1FontFromFile

Loads a Type1 font from an external file and registers it in the document object

class Doc
string
loadType1FontFromFile
(,
string pfmfilename = null
)

Parameters

afmfilename string

a path of an AFM file

pfmfilename string

a path of a PFA/PFB file. If null, the glyph data of font file is not embedded to a PDF file

Return Value

Type: string

it returns the name of a font. Otherwise, it returns null and error-handler is called

Meta