[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetOffsets

GetOffsets Method

GetOffsets(IPdfDict, PdfName, Offsets)

Gets the Offsets associated with the specified key (in a PDF a Offsets should be represented as an array of 4 floats).

Gets defValue if the value does not exist or cannot be converted to an Offsets.

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

The current dictionary.

PdfName key

The key of the value to get.

Offsets defValue

The default value.

Returns
Type Description
Offsets

The value associated with the specified key.

GetOffsets(IPdfDict, PdfName, Offsets?)

Gets the Offsets associated with the specified key (in a PDF an Offsets should be represented as an array of 4 floats).

Gets defValue if the value does not exist or cannot be converted to an Offsets.

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

The current dictionary.

PdfName key

The key of the value to get.

Offsets? defValue

The default value.

Returns
Type Description
Offsets?

The value associated with the specified key.