Click or drag to resize

PdfiumFPDFDICT_GetStringByEx Method

Gets the ANSI string associated with the specified key.

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static string FPDFDICT_GetStringByEx(
	IntPtr handle,
	string key,
	string defaultValue,
	Encoding enc = null
)

Parameters

handle  IntPtr
Handle to Dictionary object.
key  String
The key contained in the Dictionary.
defaultValue  String
Default value.
enc  Encoding  (Optional)
The encoding used to decode an ANSI string into a String. if Null DefaultAnsiEncoding is used.

Return Value

String
A string associated with the specified key or defaultValue if any error is occured.
Remarks
For unicode string objects please use FPDFDICT_GetUnicodeTextBy(IntPtr, String) instead.
See Also