[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix

GetMatrix Method

GetMatrix(IPdfDict, PdfName, Matrix3x2)

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

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

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

The current dictionary.

PdfName key

The key of the value to get.

Matrix3x2 defValue

The default value.

Returns
Type Description
Matrix3x2

The value associated with the specified key.

GetMatrix(IPdfDict, PdfName, Matrix3x2?)

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

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

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

The current dictionary.

PdfName key

The key of the value to get.

Matrix3x2? defValue

The default value.

Returns
Type Description
Matrix3x2?

The value associated with the specified key.