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:
- Go to Contributions Dashboard
- View any contribution
- 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.