# GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix3D

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_GetMatrix3D_" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix3D*">GetMatrix3D Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_GetMatrix3D_" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix3D*"></a>
<h4 id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_GetMatrix3D_GrapeCity_Documents_Pdf_Spec_IPdfDict_GrapeCity_Documents_Pdf_Spec_PdfName_GrapeCity_Documents_Pdf_Util_Matrix3D_" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix3D(GrapeCity.Documents.Pdf.Spec.IPdfDict,GrapeCity.Documents.Pdf.Spec.PdfName,GrapeCity.Documents.Pdf.Util.Matrix3D)">GetMatrix3D(IPdfDict, PdfName, Matrix3D)</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> associated with the specified key
(in a PDF a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> should be represented as an array of 12 floats).</p>
<p>Gets <code class="paramref">defValue</code> if the value does not exist or cannot be converted to a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>.</p>
Adds a warning to <span class="xref">GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog</span> if the value cannot be converted to a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>.
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Matrix3D GetMatrix3D(this IPdfDict dict, PdfName key, Matrix3D defValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetMatrix3D(dict As IPdfDict, key As PdfName, defValue As Matrix3D) As Matrix3D</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Spec.IPdfDict.html">IPdfDict</a></td>
      <td><span class="parametername">dict</span></td>
      <td><p>The current dictionary.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The key of the value to get.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a></td>
      <td><span class="parametername">defValue</span></td>
      <td><p>The default value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a></td>
      <td><p>The value associated with the specified key.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_GetMatrix3D_" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix3D*"></a>
<h4 id="GrapeCity_Documents_Pdf_Spec_IPdfDictExt_GetMatrix3D_GrapeCity_Documents_Pdf_Spec_IPdfDict_GrapeCity_Documents_Pdf_Spec_PdfName_System_Nullable_GrapeCity_Documents_Pdf_Util_Matrix3D__" data-uid="GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetMatrix3D(GrapeCity.Documents.Pdf.Spec.IPdfDict,GrapeCity.Documents.Pdf.Spec.PdfName,System.Nullable{GrapeCity.Documents.Pdf.Util.Matrix3D})">GetMatrix3D(IPdfDict, PdfName, Matrix3D?)</h4>
<div class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> associated with the specified key
(in a PDF a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a> should be represented as an array of 12 floats).</p>
<p>Gets <code class="paramref">defValue</code> if the value does not exist or cannot be converted to a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>.</p>
Adds a warning to <span class="xref">GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog</span> if the value cannot be converted to a <a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>.
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Matrix3D? GetMatrix3D(this IPdfDict dict, PdfName key, Matrix3D? defValue)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetMatrix3D(dict As IPdfDict, key As PdfName, defValue As Matrix3D?) As Matrix3D?</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Spec.IPdfDict.html">IPdfDict</a></td>
      <td><span class="parametername">dict</span></td>
      <td><p>The current dictionary.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Spec.PdfName.html">PdfName</a></td>
      <td><span class="parametername">key</span></td>
      <td><p>The key of the value to get.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>?</td>
      <td><span class="parametername">defValue</span></td>
      <td><p>The default value.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Pdf.Util.Matrix3D.html">Matrix3D</a>?</td>
      <td><p>The value associated with the specified key.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
