diff --git a/print_pdf/lib_handlers/print_pdf_dompdf/print_pdf_dompdf.pages.inc b/print_pdf/lib_handlers/print_pdf_dompdf/print_pdf_dompdf.pages.inc
index 0061a0e..a8d5c13 100644
--- a/print_pdf/lib_handlers/print_pdf_dompdf/print_pdf_dompdf.pages.inc
+++ b/print_pdf/lib_handlers/print_pdf_dompdf/print_pdf_dompdf.pages.inc
@@ -101,6 +101,18 @@ function print_pdf_dompdf_print_pdf_generate($html, $meta, $paper_size = NULL, $
   $dompdf->load_html($html);
 
   $dompdf->render();
+
+  $restriction_copy = variable_get('print_pdf_restrictions_copy', 'FALSE');
+  $restriction_password = variable_get('print_pdf_restrictions_password', 'FALSE');
+  $encryption_options = array('print', 'copy', 'modify', 'add');
+  if ($restriction_copy && $restriction_password == '') {
+    $encryption_options = array();
+  }
+  if ($restriction_copy && $restriction_password != '') {
+    $encryption_options = array('print');
+  }
+  $dompdf->get_canvas()->get_cpdf()->setEncryption($restriction_password, '', $encryption_options);
+
   return $dompdf->output();
 }
 
diff --git a/print_pdf/print_pdf.admin.inc b/print_pdf/print_pdf.admin.inc
index ef8e2c2..9b01e29 100644
--- a/print_pdf/print_pdf.admin.inc
+++ b/print_pdf/print_pdf.admin.inc
@@ -146,6 +146,28 @@ function print_pdf_settings() {
       '#description' => t('Text used in the link to the PDF version.'),
     );
 
+    $pdf_tool_default_parts = explode('|', $pdf_tool_default);
+    if ($pdf_tool_default_parts[0] == 'print_pdf_dompdf') {
+      $form['settings']['print_pdf_restrictions'] = array(
+        '#type' => 'fieldset',
+        '#title' => t('Restrictions'),
+        '#collapsible' => TRUE,
+        '#collapsed' => TRUE,
+      );
+      $form['settings']['print_pdf_restrictions']['print_pdf_restrictions_copy'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Enable copy/paste restriction.'),
+        '#default_value' => variable_get('print_pdf_restrictions_copy', FALSE),
+      );
+      $form['settings']['print_pdf_restrictions']['print_pdf_restrictions_password'] = array(
+        '#type' => 'textfield',
+        '#title' => t('Password'),
+        '#default_value' => variable_get('print_pdf_restrictions_password', ''),
+        '#description' => t('Password protection for PDF file opening.'),
+      );
+
+    }
+
     $form['#validate'][] = '_print_pdf_settings_validate';
   }
   else {
