# C1.C1Pdf.C1PdfDocumentBase.WriteMatrix

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Pdf_C1PdfDocumentBase_WriteMatrix_" data-uid="C1.C1Pdf.C1PdfDocumentBase.WriteMatrix*">WriteMatrix Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Pdf_C1PdfDocumentBase_WriteMatrix_" data-uid="C1.C1Pdf.C1PdfDocumentBase.WriteMatrix*"></a>
<h4 id="C1_C1Pdf_C1PdfDocumentBase_WriteMatrix_System_Drawing_Drawing2D_Matrix_System_String_" data-uid="C1.C1Pdf.C1PdfDocumentBase.WriteMatrix(System.Drawing.Drawing2D.Matrix,System.String)">WriteMatrix(Matrix, string)</h4>
<div class="markdown level1 summary"><p>Writes raw content into the Pdf stream for the current page.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected void WriteMatrix(Matrix m, string cmd = &quot;cm&quot;)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub WriteMatrix(m As Matrix, Optional cmd As String = &quot;cm&quot;)</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="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.matrix">Matrix</a></td>
      <td><span class="parametername">m</span></td>
      <td><p>A 3-by-3 affine <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.drawing2d.matrix">Matrix</a> that represents a geometric transform.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">cmd</span></td>
      <td><p>The action text command.By default, &quot;cm&quot; is concatenate matrix to current transformation matrix 4.7 156.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
