[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetMatrix

TryGetMatrix Method

TryGetMatrix(IPdfDict, PdfName, out Matrix3x2)

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

Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to Matrix3x2.

Declaration
public static bool TryGetMatrix(this IPdfDict dict, PdfName key, out Matrix3x2 value)
Public Shared Function TryGetMatrix(dict As IPdfDict, key As PdfName, ByRef value As Matrix3x2) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to get.

Matrix3x2 value

OUT: the value associated with the specified key.

Returns
Type Description
bool

True if the key was found and the value could be converted to a Matrix3x2, false otherwise.