# C1.Pdf.C1PdfDocument.DrawSvg

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Pdf_C1PdfDocument_DrawSvg_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg*">DrawSvg Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Pdf_C1PdfDocument_DrawSvg_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg*"></a>
<h4 id="C1_Pdf_C1PdfDocument_DrawSvg_System_String_System_Drawing_RectangleF_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg(System.String,System.Drawing.RectangleF)">DrawSvg(string, RectangleF)</h4>
<div class="markdown level1 summary"><p>Draw SVG data with content alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawSvg(string text, RectangleF rc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawSvg(text As String, rc As RectangleF)</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The SVG text data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The drawing rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.IFlowDocument.DrawSvg.html#C1_Util_IFlowDocument_DrawSvg_System_String_System_Drawing_RectangleF_">IFlowDocument.DrawSvg(string, RectangleF)</a></div>
<h5 id="C1_Pdf_C1PdfDocument_DrawSvg_System_String_System_Drawing_RectangleF__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>SVG data rendered as a bitmap.</p>
</div>


<a id="C1_Pdf_C1PdfDocument_DrawSvg_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg*"></a>
<h4 id="C1_Pdf_C1PdfDocument_DrawSvg_System_String_System_Drawing_RectangleF_System_Drawing_RectangleF_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg(System.String,System.Drawing.RectangleF,System.Drawing.RectangleF)">DrawSvg(string, RectangleF, RectangleF)</h4>
<div class="markdown level1 summary"><p>Draw SVG data with content alignment.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawSvg(string text, RectangleF rc, RectangleF rcClip)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawSvg(text As String, rc As RectangleF, rcClip As RectangleF)</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The SVG text data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p>The drawing SVG rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rcClip</span></td>
      <td><p>The drawing clip for SVG rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.IFlowDocument.DrawSvg.html#C1_Util_IFlowDocument_DrawSvg_System_String_System_Drawing_RectangleF_System_Drawing_RectangleF_">IFlowDocument.DrawSvg(string, RectangleF, RectangleF)</a></div>
<h5 id="C1_Pdf_C1PdfDocument_DrawSvg_System_String_System_Drawing_RectangleF_System_Drawing_RectangleF__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>SVG data rendered as a bitmap.</p>
</div>


<a id="C1_Pdf_C1PdfDocument_DrawSvg_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg*"></a>
<h4 id="C1_Pdf_C1PdfDocument_DrawSvg_System_String_System_Drawing_RectangleF_C1_Util_ContentAlignment_C1_Util_ImageSizeMode_" data-uid="C1.Pdf.C1PdfDocument.DrawSvg(System.String,System.Drawing.RectangleF,C1.Util.ContentAlignment,C1.Util.ImageSizeMode)">DrawSvg(string, RectangleF, ContentAlignment, ImageSizeMode)</h4>
<div class="markdown level1 summary"><p>Draws the specified SVG data at the specified location,
adjusting the SVG size as specified by the <code class="paramref">align</code> and
<code class="paramref">mode</code> parameters.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void DrawSvg(string text, RectangleF rc, ContentAlignment align, ImageSizeMode mode)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub DrawSvg(text As String, rc As RectangleF, align As ContentAlignment, mode As ImageSizeMode)</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.string">string</a></td>
      <td><span class="parametername">text</span></td>
      <td><p>The SVG text data.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a></td>
      <td><span class="parametername">rc</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectanglef">RectangleF</a> structure that specifies the location of the drawn SVG, in points from the top left corner of the page.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.ContentAlignment.html">ContentAlignment</a></td>
      <td><span class="parametername">align</span></td>
      <td><p><a class="xref" href="C1.Util.ContentAlignment.html">ContentAlignment</a> value that specifies how the SVG should be aligned within the rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Util.ImageSizeMode.html">ImageSizeMode</a></td>
      <td><span class="parametername">mode</span></td>
      <td><p><a class="xref" href="C1.Util.ImageSizeMode.html">ImageSizeMode</a> value that specifies how the SVG should be sized to fit the rectangle.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.IFlowDocument.DrawSvg.html#C1_Util_IFlowDocument_DrawSvg_System_String_System_Drawing_RectangleF_C1_Util_ContentAlignment_C1_Util_ImageSizeMode_">IFlowDocument.DrawSvg(string, RectangleF, ContentAlignment, ImageSizeMode)</a></div>
<h5 id="C1_Pdf_C1PdfDocument_DrawSvg_System_String_System_Drawing_RectangleF_C1_Util_ContentAlignment_C1_Util_ImageSizeMode__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>SVG data rendered as a bitmap.</p>
</div>
</div>
