> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Objet PDFEncryptionInfo (interface IPDFEncryptionInfo)

> Objet PDFEncryptionInfo (interface IPDFEncryptionInfo) dans l’API ABBYY FineReader Engine — Paramètres de chiffrement des fichiers PDF de sortie, définis via la propriété EncryptionInfo de PDFExportFeatures.

Cet objet donne accès aux paramètres de chiffrement d’un fichier PDF. Ces paramètres peuvent être utilisés lors de l’exportation du texte reconnu au format PDF. Ils sont définis via la propriété EncryptionInfo de l’objet [PDFExportFeatures](/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures).

<Warning>
  Les paramètres de chiffrement ne sont pas utilisés pour les fichiers PDF/A.
</Warning>

L’objet PDFEncryptionInfo vous permet d’effectuer les opérations suivantes :

* définir les mots de passe propriétaire et utilisateur ;
* définir le niveau de chiffrement ;
* activer ou désactiver les options suivantes :
  * l’ajout ou la modification d’annotations textuelles et de champs de formulaire interactifs ;
  * l’assemblage du document : insertion, rotation ou suppression de pages, et création d’éléments de navigation tels que des signets ou des vignettes ;
  * la copie ou toute autre extraction de texte et d’éléments graphiques du document ;
  * le remplissage de formulaires (c’est-à-dire le renseignement de champs de formulaire interactifs existants) et la signature du document (ce qui revient à renseigner des champs de signature existants, un type de champ de formulaire interactif) ;
  * la modification du contenu du document ;
  * l’impression du document.

<div id="properties">
  ## Propriétés
</div>

<table>
  <thead>
    <tr>
      <th>
        <p>
          <strong>Name</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>Type</strong>
        </p>
      </th>

      <th>
        <p>
          <strong>Description</strong>
        </p>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        <p>
          <strong>Application</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/api-reference/engine-object-iengine-interface">
              Engine
            </a>
          </strong>

          ,{" "}

          <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties#readonly_properties">
            read-only
          </a>
        </p>
      </td>

      <td>
        <p>
          Returns the{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/engine-object-iengine-interface">
              Engine
            </a>
          </strong>

          {" "}

          object.
        </p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Main settings</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="isencryptionrequested" />

          <strong>IsEncryptionRequested</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Specifies whether the PDF file must be encrypted.</p>

        <Warning>
          If this property is set to FALSE, the other properties will be
          ignored. This parameter can be set to TRUE only if the{" "}

          <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportparams#pdfacompliancemode">
            IPDFExportParams::PDFAComplianceMode
          </a>

          {" "}

          is set to PCM\_None.
        </Warning>

        <p>This property is FALSE by default.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="encryptionalgorithm" />

          <strong>EncryptionAlgorithm</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/api-reference/enumerations/pdfencryptionalgorithmenum">
              PDFEncryptionAlgorithmEnum
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Spécifie l'algorithme de chiffrement PDF. Notez que la plupart des algorithmes de chiffrement ont des exigences minimales concernant la version PDF (

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#pdfversion">
              IPDFExportFeatures::PDFVersion
            </a>
          </strong>

          ). Consultez la description de{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/enumerations/pdfencryptionalgorithmenum">
              PDFEncryptionAlgorithmEnum
            </a>
          </strong>

          {" "}

          pour plus de détails.
        </p>

        <p>This property is PDFEA\_RC4 by default.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="keylength" />

          <strong>KeyLength</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/api-reference/enumerations/pdfkeylengthenum">
              PDFKeyLengthEnum
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Sets the encryption key length for the RC4 algorithm. This property is
          used only when the <strong>EncryptionAlgorithm</strong> property is
          PDFEA\_RC4 (default), othersise it is ignored.
        </p>

        <Note>
          Keys with length greater than 40 bit require PDF version ({" "}

          <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#pdfversion">
            IPDFExportFeatures::PDFVersion
          </a>

          {" "}

          ) at least 1.4.
        </Note>

        <p>This property is PDFKL\_40Bit by default.</p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Passwords</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="ownerpassword" />

          <strong>OwnerPassword</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              BSTR
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Stores owner password. Opening the document with the correct owner
          password (assuming it is not the same as the user password) allows
          full (owner) access to the document. This unlimited access includes
          the ability to change the document’s passwords and access permissions.
        </p>

        <p>The default value is an empty string.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="userpassword" />

          <strong>UserPassword</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              BSTR
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Stores the user password. Opening the document with the correct user
          password (or opening a document that does not have a user password)
          allows additional operations to be performed according to the user
          access permissions specified in the document’s encryption dictionary.
        </p>

        <p>The default value is an empty string.</p>
      </td>
    </tr>

    <tr>
      <td colspan="3">
        <p>
          <em>Permissions</em>
        </p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionaddannotations" />

          <strong>PermissionAddAnnotations</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Enables or disables modifying text annotations, filling out
          interactive form fields, and signing the document (which amounts to
          filling out existing signature fields, a type of interactive form
          field); together with the <strong>PermissionModifyContent</strong>{" "}
          property, also allows adding new text annotations and form fields.
        </p>

        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionassembledoc" />

          <strong>PermissionAssembleDoc</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Enables or disables assembling the document: inserting, rotating,
          deleting pages and creating navigation elements such as bookmarks and
          thumbnail images.
        </p>

        <p>
          This property is ignored in PDF version 1.3 (see{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#pdfversion">
              IPDFExportFeatures::PDFVersion
            </a>
          </strong>

          ).
        </p>

        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionextracttextandgraphics" />

          <strong>PermissionExtractTextAndGraphics</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Enables or disables copying and otherwise extracting text and graphics
          from the document. However, extracting text and graphics for the
          purposes of accessibility to disabled users will still be possible,
          independently of this property value.
        </p>

        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionextracttextandgraphicsext" />

          <strong>PermissionExtractTextAndGraphicsExt</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Enables or disables extracting text and graphics (to make them
          accessible to users with disabilities or for other purposes).
        </p>

        <p>
          This property is ignored in PDF version 1.3 (see{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#pdfversion">
              IPDFExportFeatures::PDFVersion
            </a>
          </strong>

          ).
        </p>

        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionfillformfields" />

          <strong>PermissionFillFormFields</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Enables or disables filling out existing interactive form fields and
          signing the document (which amounts to filling out existing signature
          fields, a type of interactive form field).
        </p>

        <p>
          This property is ignored in PDF version 1.3 (see{" "}

          <strong>
            <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#pdfversion">
              IPDFExportFeatures::PDFVersion
            </a>
          </strong>

          ).
        </p>

        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionmodifycontent" />

          <strong>PermissionModifyContent</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Enables or disables modifying the contents of the document.</p>
        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionprint" />

          <strong>PermissionPrint</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>Enables or disables printing the document.</p>
        <p>The default value is FALSE.</p>
      </td>
    </tr>

    <tr>
      <td>
        <p>
          <a name="permissionprintext" />

          <strong>PermissionPrintExt</strong>
        </p>
      </td>

      <td>
        <p>
          <strong>
            <a href="/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties">
              VARIANT\_BOOL
            </a>
          </strong>
        </p>
      </td>

      <td>
        <p>
          Active ou désactive l'impression vers une représentation à partir de laquelle une copie
          numérique fidèle du contenu PDF pourrait être générée. Interdire ce type d'impression
          peut entraîner une dégradation de la qualité de sortie (fonctionnalité
          implémentée sous le nom "Print As Image" dans Acrobat).
        </p>

        <p>The value of this property is ignored if:</p>

        <ul>
          <li>
            the <strong>PermissionPrint</strong> property is set to FALSE.
          </li>

          <li>
            PDF version is 1.3 (see{" "}

            <strong>
              <a href="/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#pdfversion">
                IPDFExportFeatures::PDFVersion
              </a>
            </strong>

            ).
          </li>
        </ul>

        <p>The default value is FALSE.</p>
      </td>
    </tr>
  </tbody>
</table>

<div id="related-objects">
  ## Objets associés
</div>

<img src="https://mintcdn.com/abbyy/i-EfCQVmseNiPQcp/images/fine-reader/engine/pdfencryptioninfo.gif?s=17686ce02a5e31aeb6ea8723b53430e2" alt="PDFEncryptionInfo" width="161" height="54" data-path="images/fine-reader/engine/pdfencryptioninfo.gif" />[](/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures#encryptioninfo)[](/fr/fine-reader/engine/api-reference/parameter-objects/export-parameters/pdfexportfeatures)

[Diagramme d’objets](/fr/fine-reader/engine/api-reference/object-diagram)

<div id="samples">
  ## Exemples
</div>

Cet objet est utilisé dans les exemples de code suivants : [CommandLineInterface](/fr/fine-reader/engine/guided-tour/samples#commandlineinterface) (Windows et Linux)

<div id="see-also">
  ## Voir aussi
</div>

[Réglage des paramètres d’exportation](/fr/fine-reader/engine/guided-tour/advanced-techniques/tuning-export-parameters)

[Utilisation des profils](/fr/fine-reader/engine/guided-tour/advanced-techniques/working-with-profiles)

[Utilisation des propriétés](/fr/fine-reader/engine/guided-tour/advanced-techniques/programming-aspects/working-with-properties)
