[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetStringOrName

GetStringOrName Method

GetStringOrName(IPdfDict, PdfName, string)

Gets the string associated with the specified key. The string can be specified in the PDF as a PDF string or a PDF name.

Gets defValue if the value does not exist or cannot be converted to a string.

Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to a string.
Declaration
public static string GetStringOrName(this IPdfDict dict, PdfName key, string defValue)
Public Shared Function GetStringOrName(dict As IPdfDict, key As PdfName, defValue As String) As String
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

string defValue

The default value.

Returns
Type Description
string

The value associated with the specified key.