Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Queries one font within the PDF as JSON object.

Component Version macOS Windows Linux Server iOS SDK
DynaPDF 10.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "DynaPDF.GetFontAsJSON"; PDF; Index )   More


Parameter Description Example
PDF The PDF reference returned from DynaPDF.New. $pdf
Index The font index from zero to DynaPDF.GetFontCount. 0


Returns JSON or error.


Queries one font within the PDF as JSON object.
See TPDFFontInfo structure in DynaPDF help, which we convert to JSON for you.

Keys include Ascent, AvgWidth, BaseEncoding, BaseFont, CapHeight, CharSet, CharSetSize, CIDOrdering, CIDRegistry, CIDSet, CIDSetSize, CIDSupplement, CIDToGIDMap, CIDToGIDMapSize, CMapBuf, CMapBufSize, CMapName, Descent, Encoding, FirstChar, Flags, FontBBox, FontBuffer, FontBufSize, FontFamily, FontFilePath, FontFileType, FontName, FontStretch, FontType, FontWeight, FullName, HaveEncoding, HorzWidths, HorzWidthsCount, Imported, ItalicAngle, Lang, LastChar, Leading, Length1, Length2, Length3, MaxWidth, Metadata, MetadataSize, MisWidth, Panose, PostScriptName, SpaceWidth, StemH, StemV, ToUnicode, ToUnicodeSize, VertDefPos, VertWidths, VertWidthsCount, WMode, XHeight and Index.

See also GetFontAsJSON function in DynaPDF manual.

See also

Release notes

Blog Entries

This function checks for a license.

Created 19th September 2020, last changed 2nd September 2022

DynaPDF.GetFieldsAsJSON - DynaPDF.GetFontCount