[]
Tries to get the Offsets associated with the specified key (in a PDF an Offsets should be represented as an array of 4 floats).
Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to Offsets.
public static bool TryGetOffsets(this IPdfDict dict, PdfName key, out Offsets value)
Public Shared Function TryGetOffsets(dict As IPdfDict, key As PdfName, ByRef value As Offsets) As Boolean
Type | Name | Description |
---|---|---|
IPdfDict | dict | The current dictionary. |
PdfName | key | The key of the value to get. |
Offsets | value | OUT: the value associated with the specified key. |
Type | Description |
---|---|
bool | True if the key was found and the value could be converted to an Offsets, false otherwise. |