# C1.C1Preview.Export.EmfExporter

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_Export_EmfExporter" data-uid="C1.C1Preview.Export.EmfExporter" class="text-break">EmfExporter Class
</h1>
  <div class="markdown level0 summary"><p>Provides export of a document to a sequence of metafiles in disk files or in a stream.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.C1Preview.Export.Exporter.html">Exporter</a></div>
    <div class="level2"><a class="xref" href="C1.C1Preview.Export.PagesExporter.html">PagesExporter</a></div>
    <div class="level3"><span class="xref">EmfExporter</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.Export.html">C1.C1Preview.Export</a></h6>
  <h6><strong>Assembly</strong>: C1.PrintDocument.4.8.dll</h6>
  <h5 id="C1_C1Preview_Export_EmfExporter_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class EmfExporter : PagesExporter</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class EmfExporter
    Inherits PagesExporter</code></pre>
  </div>
  <h5 id="C1_C1Preview_Export_EmfExporter_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p><b>EmfExporter</b> supports export to stream in the following format:</p>
<ul><li><span class="term">int</span>The total page count.</li><li><span class="term">int</span>The length of the first page data (bytes).</li><li><span class="term">byte[]</span>The first page data.</li><li><span class="term">int</span>The length of the second page data (bytes).</li><li><span class="term">byte[]</span>The second page data.</li><li><span class="term">...</span>...and so on for all pages...</li></ul>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter__ctor" data-uid="C1.C1Preview.Export.EmfExporter.#ctor">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.-ctor.html#C1_C1Preview_Export_EmfExporter__ctor">EmfExporter()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.C1Preview.Export.EmfExporter.html">EmfExporter</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter_EmfPlusToEmfOnly" data-uid="C1.C1Preview.Export.EmfExporter.EmfPlusToEmfOnly">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.EmfPlusToEmfOnly.html#C1_C1Preview_Export_EmfExporter_EmfPlusToEmfOnly">EmfPlusToEmfOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether
metafiles of types <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype#system-drawing-imaging-emftype-emfplusdual">EmfPlusDual</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype#system-drawing-imaging-emftype-emfplusonly">EmfPlusOnly</a>
should be converted to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype#system-drawing-imaging-emftype-emfonly">EmfOnly</a> type before exporting.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter_ExportProvider" data-uid="C1.C1Preview.Export.EmfExporter.ExportProvider">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.ExportProvider.html#C1_C1Preview_Export_EmfExporter_ExportProvider">ExportProvider</a>
        </td>
        <td class="markdown level1 summary"><p>Gets <a class="xref" href="C1.C1Preview.Export.ExportProviders.EmfExportProvider.html#C1_C1Preview_Export_ExportProviders_EmfExportProvider">EmfExportProvider</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter_ConvertEmfPlusToEmfOnly" data-uid="C1.C1Preview.Export.EmfExporter.ConvertEmfPlusToEmfOnly">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.ConvertEmfPlusToEmfOnly.html#C1_C1Preview_Export_EmfExporter_ConvertEmfPlusToEmfOnly">ConvertEmfPlusToEmfOnly()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether page metafiles of types <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype#system-drawing-imaging-emftype-emfplusdual">EmfPlusDual</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype#system-drawing-imaging-emftype-emfplusonly">EmfPlusOnly</a>
should be converted to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.emftype#system-drawing-imaging-emftype-emfonly">EmfOnly</a> type before exporting.
The base implementation returns the value of <a class="xref" href="C1.C1Preview.Export.EmfExporter.EmfPlusToEmfOnly.html#C1_C1Preview_Export_EmfExporter_EmfPlusToEmfOnly">EmfPlusToEmfOnly</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter_CopyPropertiesFromOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_" data-uid="C1.C1Preview.Export.EmfExporter.CopyPropertiesFromOptionsForm(C1.C1Preview.Export.ExportOptionsFormBase)">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.CopyPropertiesFromOptionsForm.html#C1_C1Preview_Export_EmfExporter_CopyPropertiesFromOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_">CopyPropertiesFromOptionsForm(ExportOptionsFormBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the options from the specified export options form
to corresponding properties on the current exporter.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter_CopyPropertiesToOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_" data-uid="C1.C1Preview.Export.EmfExporter.CopyPropertiesToOptionsForm(C1.C1Preview.Export.ExportOptionsFormBase)">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.CopyPropertiesToOptionsForm.html#C1_C1Preview_Export_EmfExporter_CopyPropertiesToOptionsForm_C1_C1Preview_Export_ExportOptionsFormBase_">CopyPropertiesToOptionsForm(ExportOptionsFormBase)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the properties of the current exporter to corresponding
user-editable options of the specified export options form.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_Export_EmfExporter_ProcessPage_System_Drawing_Imaging_Metafile_C1_C1Preview_C1MetafileInfo_System_Int32_System_Boolean_" data-uid="C1.C1Preview.Export.EmfExporter.ProcessPage(System.Drawing.Imaging.Metafile,C1.C1Preview.C1MetafileInfo,System.Int32,System.Boolean)">
          <a class="xref" href="C1.C1Preview.Export.EmfExporter.ProcessPage.html#C1_C1Preview_Export_EmfExporter_ProcessPage_System_Drawing_Imaging_Metafile_C1_C1Preview_C1MetafileInfo_System_Int32_System_Boolean_">ProcessPage(Metafile, C1MetafileInfo, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Exports a page of a document represented by a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.imaging.metafile">Metafile</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
