GetFontArrayIDFromFontDictionaryName

Return the font ID number from the Font Dictionary.

Not intended to be used directly from your code.

GetFontArrayIDFromFontDictionaryName(FontDictionaryName As String) As Integer

Value passed to this procedure:

FontDictionaryNameThe name used to reference the font within the document Font Dictionary. The FontDictionaryName is assigned to the font when you call LoadFont.

Example

Dim cPDF As New vbPDF

..

Dim fontId As Integer = cPDF.GetFontArrayIDFromFontDictionaryName(FontDictionaryName)
If fontId < 0 Then
  Throw New Exception("The font '" & FontDictionaryName & "' is not loaded.")
End If