# C1.C1Preview.Export.ExportUtil.GetPageMetafile

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile*">GetPageMetafile Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile*"></a>
<h4 id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_System_Int32_System_Collections_IList_System_Object_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile(System.Int32,System.Collections.IList,System.Object,C1.C1Preview.PageDrawParams)">GetPageMetafile(int, IList, object, PageDrawParams)</h4>
<div class="markdown level1 summary"><p>Gets the page metafile for export or printing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Metafile GetPageMetafile(int pageNo, IList pages, object document, PageDrawParams pdp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetPageMetafile(pageNo As Integer, pages As IList, document As Object, pdp As PageDrawParams) As Metafile</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.int32">int</a></td>
      <td><span class="parametername">pageNo</span></td>
      <td><p>The physical page number (1-based index).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></td>
      <td><span class="parametername">pages</span></td>
      <td><p>The pages collection (may be <code>null</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The document (may be <code>null</code>).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.PageDrawParams.html">PageDrawParams</a></td>
      <td><span class="parametername">pdp</span></td>
      <td><p>Specifies drawing params.</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="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a></td>
      <td><p>The page metafile.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile*"></a>
<h4 id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_C1_C1Preview_IC1Document_System_Int32_C1_C1Preview_PageDrawParams_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile(C1.C1Preview.IC1Document,System.Int32,C1.C1Preview.PageDrawParams)">GetPageMetafile(IC1Document, int, PageDrawParams)</h4>
<div class="markdown level1 summary"><p>Gets the page metafile for export or printing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Metafile GetPageMetafile(IC1Document document, int pageIdx, PageDrawParams pdp)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetPageMetafile(document As IC1Document, pageIdx As Integer, pdp As PageDrawParams) As Metafile</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><span class="xref">IC1Document</span></td>
      <td><span class="parametername">document</span></td>
      <td><p>The object supporting IC1Document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageIdx</span></td>
      <td><p>The 0-based page index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.C1Preview.PageDrawParams.html">PageDrawParams</a></td>
      <td><span class="parametername">pdp</span></td>
      <td><p>Specifies drawing params.</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="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a></td>
      <td><p>The page metafile.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile*"></a>
<h4 id="C1_C1Preview_Export_ExportUtil_GetPageMetafile_C1_C1Preview_C1PrintDocument_System_Int32_" data-uid="C1.C1Preview.Export.ExportUtil.GetPageMetafile(C1.C1Preview.C1PrintDocument,System.Int32)">GetPageMetafile(C1PrintDocument, int)</h4>
<div class="markdown level1 summary"><p>Gets the page metafile for export or printing.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Metafile GetPageMetafile(C1PrintDocument document, int pageIdx)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetPageMetafile(document As C1PrintDocument, pageIdx As Integer) As Metafile</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="C1.C1Preview.C1PrintDocument.html">C1PrintDocument</a></td>
      <td><span class="parametername">document</span></td>
      <td><p>The C1PrintDocument object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">pageIdx</span></td>
      <td><p>The 0-based page index.</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="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a></td>
      <td><p>The page metafile.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
