[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetMatrix3D

TryGetMatrix3D Method

TryGetMatrix3D(IPdfDict, PdfName, out Matrix3D)

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

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

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

The current dictionary.

PdfName key

The key of the value to get.

Matrix3D 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 Matrix3D, false otherwise.