# C1.C1Pdf.C1PdfDocumentBase.GeneratingDocument

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_C1Pdf_C1PdfDocumentBase_GeneratingDocument" data-uid="C1.C1Pdf.C1PdfDocumentBase.GeneratingDocument" class="text-break">GeneratingDocument Event
</h1>
<div class="markdown level0 summary"><p>Fires periodically while data is written into the PDF document.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Pdf.html">C1.C1Pdf</a></h6>
<h6><strong>Assembly</strong>: C1.C1Pdf.4.8.dll</h6>
<h5 id="C1_C1Pdf_C1PdfDocumentBase_GeneratingDocument_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public event EventHandler GeneratingDocument</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Event GeneratingDocument As EventHandler</code></pre>
</div>
<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.eventhandler">EventHandler</a></td>
      <td>Fires periodically while data is written into the PDF document.</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_C1Pdf_C1PdfDocumentBase_GeneratingDocument_remarks"><strong>Remarks</strong></h5>
<div class="markdown level0 remarks"><p>The event handler may check the number of pages created so far by
accessing the <a class="xref" href="C1.C1Pdf.C1PdfDocumentBase.Pages.html#C1_C1Pdf_C1PdfDocumentBase_Pages">Pages</a> property.</p>
</div>
</div>
