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

Print PDF Letter for Contacts task - page orientation is 'landscape' but should be 'portrait' for letters

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0, 3.0.1
    • Fix Version/s: 3.0.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      This task uses the same function as the CiviReport PDFs - and the page layout is currently hardcoded to 'landscape' (since that's appropriate for report pages). However, expected orientation for letters is 'portrait'.

      Add a parameter to CRM_Utils_PDF_Utils::html2pdf to allow override of page layout (default can still be 'landscape'). Then modify CRM_Contact_Form_Task_PDFLetterCommon to specify 'portrait' layout (line 198).

        Attachments

          Activity

            People

            • Assignee:
              mover Michał Mach
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: