Uploaded image for project: 'InvoicePlane'
  1. InvoicePlane
  2. IP-400

PDF Report has unwanted file security Password

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v1.4.7
    • Component/s: PDF Files, Reports
    • Labels:
      None
    • Environment:

      MySQL client version: 5.1.62
      MySQL charset: UTF-8 Unicode (utf8)
      hsphere, BSD, Apache, php 5.4

      Description

      PDF Report has unwanted file security Password.

      I fixed it locally ...

      File: \application\helpers\mpdf_helper.php

      Issue on Line #26:

      $mpdf->SetProtection(array('copy','print'), $password, $password);
      

      Fix:

      // Avoid setting protection when password is blank
      if($password) {
          $mpdf->SetProtection(array('copy','print'), $password, $password);
      }
      

      I've attached fixed version of file from latest master release.

        Gliffy Diagrams

          Attachments

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  AussieChris Christofer Alexander
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel