# GrapeCity.Documents.Pdf.PdfStreamHandling

## Content

<div class="doc-site-dotnet-api-container">




  <h1 id="GrapeCity_Documents_Pdf_PdfStreamHandling" data-uid="GrapeCity.Documents.Pdf.PdfStreamHandling" class="text-break">PdfStreamHandling Enum
</h1>
  <div class="markdown level0 summary"><p>Defines how to process existing PDF streams in a loaded document.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Pdf.html">GrapeCity.Documents.Pdf</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Pdf.dll</h6>
  <h5 id="GrapeCity_Documents_Pdf_PdfStreamHandling_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public enum PdfStreamHandling</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Enum PdfStreamHandling</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    <thead>
    </thead></thead><tbody>
      <tr>
        <td id="GrapeCity_Documents_Pdf_PdfStreamHandling_Copy">Copy</td>
        <td><p>Copy the content of the original stream to the output as is without any changes.
Note that <a class="xref" href="GrapeCity.Documents.Pdf.GcPdfDocument.CompressionLevel.html#GrapeCity_Documents_Pdf_GcPdfDocument_CompressionLevel">CompressionLevel</a> will not affect any
existing streams in this case, and will only be used for saving streams that were added
after loading the document.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_PdfStreamHandling_MinimizeSize">MinimizeSize</td>
        <td><p>Copy the existing streams as-is (see <a class="xref" href="GrapeCity.Documents.Pdf.PdfStreamHandling.html#GrapeCity_Documents_Pdf_PdfStreamHandling_Copy">Copy</a>), or re-compress them (see <a class="xref" href="GrapeCity.Documents.Pdf.PdfStreamHandling.html#GrapeCity_Documents_Pdf_PdfStreamHandling_UseCompressionLevel">UseCompressionLevel</a>),
achieving the smallest possible size.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Pdf_PdfStreamHandling_UseCompressionLevel">UseCompressionLevel</td>
        <td><p>Decompress existing PDF streams and re-compress them using <a class="xref" href="GrapeCity.Documents.Pdf.GcPdfDocument.CompressionLevel.html#GrapeCity_Documents_Pdf_GcPdfDocument_CompressionLevel">CompressionLevel</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
</div>
