# C1.C1Pdf.C1PdfDocument.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Pdf_C1PdfDocument__ctor_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor*">C1PdfDocument Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Pdf_C1PdfDocument__ctor_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument__ctor" data-uid="C1.C1Pdf.C1PdfDocument.#ctor">C1PdfDocument()</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.C1Pdf.C1PdfDocument.html">C1PdfDocument</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1PdfDocument()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>
<h5 id="C1_C1Pdf_C1PdfDocument__ctor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The new document contains a single empty page, and the
default page size is set to Letter (8.5 x 11 inches).</p>
</div>


<a id="C1_C1Pdf_C1PdfDocument__ctor_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument__ctor_System_Drawing_Printing_PaperKind_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor(System.Drawing.Printing.PaperKind)">C1PdfDocument(PaperKind)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.C1Pdf.C1PdfDocument.html">C1PdfDocument</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1PdfDocument(PaperKind paperKind)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(paperKind As PaperKind)</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.printing.paperkind">PaperKind</a></td>
      <td><span class="parametername">paperKind</span></td>
      <td><p>The default paper size for the document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Pdf_C1PdfDocument__ctor_System_Drawing_Printing_PaperKind__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The new document contains a single empty page, and the
default page size is set to the value of the
parameter.</p>
</div>


<a id="C1_C1Pdf_C1PdfDocument__ctor_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument__ctor_System_Drawing_Printing_PaperKind_System_Boolean_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor(System.Drawing.Printing.PaperKind,System.Boolean)">C1PdfDocument(PaperKind, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.C1Pdf.C1PdfDocument.html">C1PdfDocument</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1PdfDocument(PaperKind paperKind, bool landscape)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(paperKind As PaperKind, landscape As Boolean)</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.printing.paperkind">PaperKind</a></td>
      <td><span class="parametername">paperKind</span></td>
      <td><p>The default paper size for the document.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">landscape</span></td>
      <td><p>The default paper orientation for the document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Pdf_C1PdfDocument__ctor_System_Drawing_Printing_PaperKind_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The new document contains a single empty page, and the
default page size is set to the value of the
and  parameters.</p>
</div>


<a id="C1_C1Pdf_C1PdfDocument__ctor_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor*"></a>
<h4 id="C1_C1Pdf_C1PdfDocument__ctor_System_Drawing_SizeF_" data-uid="C1.C1Pdf.C1PdfDocument.#ctor(System.Drawing.SizeF)">C1PdfDocument(SizeF)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of the <a class="xref" href="C1.C1Pdf.C1PdfDocument.html">C1PdfDocument</a> class.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public C1PdfDocument(SizeF pageSizeInPoints)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(pageSizeInPoints As SizeF)</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.sizef">SizeF</a></td>
      <td><span class="parametername">pageSizeInPoints</span></td>
      <td><p>The default paper size for the document, in points.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Pdf_C1PdfDocument__ctor_System_Drawing_SizeF__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The new document contains a single empty page, and the
default page size is set to the value of the
parameter.</p>
</div>
</div>
