PeachDrawing.PDF.PdfPageSource

PdfPageSource.TryGetCustomString(int, string, string, string) Method

Tries to read a custom string entry from a dictionary associated with a page.

public bool TryGetCustomString(int pageIndex, string dictionaryKey, string key, out string? value);

Parameters

pageIndex System.Int32

the zero-based page number

dictionaryKey System.String

the PDF name of the dictionary entry in the page, including its leading slash

key System.String

the PDF name of the string entry in the dictionary, including its leading slash

value System.String

the string value when the entry exists and contains a string; otherwise null

Returns

System.Boolean
true when the entry exists and contains a string; otherwise false