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

mPDF does not show image errors

    XMLWordPrintable

    Details

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

      Description

      I had an image error after creating a pdf quote.

      The problem is that mpdf does not report image error making it very difficult to find the bug.

      In mpdf_helper, I added one line:

      function pdf_create($html, $filename, $stream = TRUE, $password = NULL,$isInvoice = NULL,$isGuest = NULL)
      {
      require_once(APPPATH . 'helpers/mpdf/mpdf.php');

      $mpdf = new mPDF();
      >>> $mpdf->showImageErrors = true;
      $mpdf->useAdobeCJK = true;
      ...

      After that mpdf reported
      mPDF error: IMAGE Error (/var/www/port443/billing/uploads/300px-DCMI-cgi-example.png): GD library required for PNG image (alpha channel)

      and I could fix the error.

        Gliffy Diagrams

          Attachments

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  hoene Christian Hoene
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel