FontCount

Fonts

Description

Returns the total number of fonts added to the PDF file. This function does not take into account the fonts that may have already been in an existing PDF document which was loaded with the LoadFromFile function unless the FindFonts function has been called.

Syntax

Delphi

function TPDFlib.FontCount: Integer;

ActiveX

Function PDFlib::FontCount As Long

DLL

int DLFontCount(int InstanceID);

Return values

0No fonts have been added to the document or FindFonts has not found any fonts in an existing document.
Non-zeroThe number of fonts added to the PDF plus the number of fonts found with FindFonts.