# GrapeCity.Documents.Excel.PrintManager.SavePDF

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*">SavePDF Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_System_IO_Stream_System_Collections_Generic_IEnumerable_GrapeCity_Documents_Excel_Workbook__GrapeCity_Documents_Excel_PdfSaveOptions_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF(System.IO.Stream,System.Collections.Generic.IEnumerable{GrapeCity.Documents.Excel.Workbook},GrapeCity.Documents.Excel.PdfSaveOptions)">SavePDF(Stream, IEnumerable&lt;Workbook&gt;, PdfSaveOptions)</h4>
<div class="markdown level1 summary"><p>Saves the datas from different workbooks to the specified pdf file stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SavePDF(Stream stream, IEnumerable&lt;Workbook&gt; workbooks, PdfSaveOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SavePDF(stream As Stream, workbooks As IEnumerable(Of Workbook), Optional options As PdfSaveOptions = Nothing)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The specified pdf file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.Workbook.html">Workbook</a>&gt;</td>
      <td><span class="parametername">workbooks</span></td>
      <td><p>The workbook collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PdfSaveOptions.html">PdfSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options for saving pdf file.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_System_IO_Stream_GrapeCity_Documents_Excel_Workbook___" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF(System.IO.Stream,GrapeCity.Documents.Excel.Workbook[])">SavePDF(Stream, params Workbook[])</h4>
<div class="markdown level1 summary"><p>Saves the datas from different workbooks to the specified pdf file stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SavePDF(Stream stream, params Workbook[] workbooks)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SavePDF(stream As Stream, ParamArray workbooks As Workbook())</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The specified pdf file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Workbook.html">Workbook</a>[]</td>
      <td><span class="parametername">workbooks</span></td>
      <td><p>The workbook collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_System_String_System_Collections_Generic_IEnumerable_GrapeCity_Documents_Excel_Workbook__GrapeCity_Documents_Excel_PdfSaveOptions_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF(System.String,System.Collections.Generic.IEnumerable{GrapeCity.Documents.Excel.Workbook},GrapeCity.Documents.Excel.PdfSaveOptions)">SavePDF(string, IEnumerable&lt;Workbook&gt;, PdfSaveOptions)</h4>
<div class="markdown level1 summary"><p>Saves the datas from different workbooks to the specified pdf file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SavePDF(string fileName, IEnumerable&lt;Workbook&gt; workbooks, PdfSaveOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SavePDF(fileName As String, workbooks As IEnumerable(Of Workbook), Optional options As PdfSaveOptions = Nothing)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The specified pdf file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.Workbook.html">Workbook</a>&gt;</td>
      <td><span class="parametername">workbooks</span></td>
      <td><p>The workbook collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PdfSaveOptions.html">PdfSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options for saving pdf file.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_System_String_GrapeCity_Documents_Excel_Workbook___" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF(System.String,GrapeCity.Documents.Excel.Workbook[])">SavePDF(string, params Workbook[])</h4>
<div class="markdown level1 summary"><p>Saves the datas from different workbooks to the specified pdf file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SavePDF(string fileName, params Workbook[] workbooks)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SavePDF(fileName As String, ParamArray workbooks As Workbook())</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The specified pdf file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.Workbook.html">Workbook</a>[]</td>
      <td><span class="parametername">workbooks</span></td>
      <td><p>The workbook collection.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_System_String_System_Collections_Generic_IList_GrapeCity_Documents_Excel_PageInfo__GrapeCity_Documents_Excel_PdfSaveOptions_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF(System.String,System.Collections.Generic.IList{GrapeCity.Documents.Excel.PageInfo},GrapeCity.Documents.Excel.PdfSaveOptions)">SavePDF(string, IList&lt;PageInfo&gt;, PdfSaveOptions)</h4>
<div class="markdown level1 summary"><p>Saves the page datas to the specified pdf file.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SavePDF(string fileName, IList&lt;PageInfo&gt; pages, PdfSaveOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SavePDF(fileName As String, pages As IList(Of PageInfo), Optional options As PdfSaveOptions = Nothing)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>The specified pdf file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.PageInfo.html">PageInfo</a>&gt;</td>
      <td><span class="parametername">pages</span></td>
      <td><p>The page information collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PdfSaveOptions.html">PdfSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options for saving pdf file.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Excel_PrintManager_SavePDF_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF*"></a>
<h4 id="GrapeCity_Documents_Excel_PrintManager_SavePDF_System_IO_Stream_System_Collections_Generic_IList_GrapeCity_Documents_Excel_PageInfo__GrapeCity_Documents_Excel_PdfSaveOptions_" data-uid="GrapeCity.Documents.Excel.PrintManager.SavePDF(System.IO.Stream,System.Collections.Generic.IList{GrapeCity.Documents.Excel.PageInfo},GrapeCity.Documents.Excel.PdfSaveOptions)">SavePDF(Stream, IList&lt;PageInfo&gt;, PdfSaveOptions)</h4>
<div class="markdown level1 summary"><p>Saves the page datas to the specified pdf file stream.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SavePDF(Stream stream, IList&lt;PageInfo&gt; pages, PdfSaveOptions options = null)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SavePDF(stream As Stream, pages As IList(Of PageInfo), Optional options As PdfSaveOptions = Nothing)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p>The specified pdf file.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="GrapeCity.Documents.Excel.PageInfo.html">PageInfo</a>&gt;</td>
      <td><span class="parametername">pages</span></td>
      <td><p>The page information collection.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Excel.PdfSaveOptions.html">PdfSaveOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options for saving pdf file.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
