# GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity" data-uid="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity" class="text-break">PdfSecurity Class
</h1>
  <div class="markdown level0 summary"><p>Encapsulates the information necessary to provide PDF document security and encryption.</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"><span class="xref">PdfSecurity</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.html">GrapeCity.ActiveReports.Export.Pdf.Section</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Export.Pdf.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(ExpandableObjectConverter))]
public class PdfSecurity</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>If a user password is supplied the viewer application should prompt for a password.
If a user password is not supplied no password will be requested to open the document.
By correctly supplying either the user password, or the owner password, the user will be able to open the document, decrypt it and display it on the screen.
Whether additional operations are allowed on a decrypted document depends on which password (if any) was supplied when the document was opened and on any access restrictions specified using this class's <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Permissions.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Permissions">Permissions</a> property.</p>
</div>
  <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="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Encrypt" data-uid="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Encrypt">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Encrypt.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Encrypt">Encrypt</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the document is encrypted or not.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_OwnerPassword" data-uid="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.OwnerPassword">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.OwnerPassword.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_OwnerPassword">OwnerPassword</a>
        </td>
        <td class="markdown level1 summary"><p>The owner password that can be entered in the reader that permits full access to the document regardless of the specified user permissions.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Permissions" data-uid="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Permissions">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Permissions.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Permissions">Permissions</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the user permissions for the document.  The <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfPermissions.html">PdfPermissions</a> values can be combined using a bitwise OR combination.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Use128Bit" data-uid="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Use128Bit">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.Use128Bit.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_Use128Bit">Use128Bit</a>
        </td>
        <td class="markdown level1 summary"><p>True to use 128 bit encryption with full permissions capability.<br>
False to use 40 bit encryption with limited permissions.
The <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfPermissions.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfPermissions_AllowFillIn">AllowFillIn</a>, <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfPermissions.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfPermissions_AllowAccessibleReaders">AllowAccessibleReaders</a>, and <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfPermissions.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfPermissions_AllowAssembly">AllowAssembly</a> permissions require this value to be true.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_UserPassword" data-uid="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.UserPassword">
          <a class="xref" href="GrapeCity.ActiveReports.Export.Pdf.Section.PdfSecurity.UserPassword.html#GrapeCity_ActiveReports_Export_Pdf_Section_PdfSecurity_UserPassword">UserPassword</a>
        </td>
        <td class="markdown level1 summary"><p>The user password that can be entered in the reader.  If this value is left empty the user will not be prompted for a password, however the user will be restricted by the specified permissions.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
