Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-19696

Printing Invoice not respecting PDF page format margins

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.7.11
    • Fix Version/s: None
    • Component/s: CiviContribute
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      When I go to print contribution invoices I'm getting a 1 in. margin on the left side only. Attempts to adjust the margins in the PDF page formats section doesn't appear to work. Problem appears to exist with both wkhtmltopdf and DOMPDF generators.

      PDF generation for letters/merges DO seem to work, this only appears to affect invoice printing.

      When emailing invoice, the PDF attached to the email DOES appear to respect the page format. This only seems to happen when you Print Invoice directly from the contribution button.

      To recreate:

      1. Go to Contributions Dashboard
      2. View any contribution
      3. Select "Print Invoice"

      At first pass this appears to be happening on the html2pdf call on line 560 of CRM/Contribute/Form/Task/Invoice.php looks like the format values are hardcoded there instead of pulling in the PDF Format values.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alanpuccinelli@gmail.com Alan Puccinelli
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: