You are here

public static function PdftkPdfBackend::getEncryptionOptions in FillPDF 5.0.x

Same name and namespace in other branches
  1. 8.4 src/Plugin/PdfBackend/PdftkPdfBackend.php \Drupal\fillpdf\Plugin\PdfBackend\PdftkPdfBackend::getEncryptionOptions()

Get valid PDFtk encryption options.

Return value

array The valid encryption options.

File

src/Plugin/PdfBackend/PdftkPdfBackend.php, line 247

Class

PdftkPdfBackend
Pdftk PdfBackend plugin.

Namespace

Drupal\fillpdf\Plugin\PdfBackend

Code

public static function getEncryptionOptions() : array {
  return [
    '' => t('No encryption (Default)'),
    'encrypt_128bit' => t('128-bit encryption (Recommended)'),
    'encrypt_40bit' => t('40-bit encryption'),
  ];
}