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

Replace DOMPDF with TCPDF for "Create PDF Letter"

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.4.5
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      The action "Create PDF Letter" currently uses the library DOMPDF. The action "Create Name Badges" uses a newer library called TCPDF. "Create PDF Letter" needs to be updated to also use TCPDF. This will have the benefit of improving the code consistency, and allow for the use of "stationary" ie letterhead that needs to be used as the background for every page in the PDF file.

      NOTE: Stationery path field has been suppressed in Contact/Form/Task/PDFLetterCommon.php since it's not functional with DOMPDF. That field should be reinstated and some help added when this issue is resolved. At that point the Stationery path value included in the PDF Page Format settings (currently that field isn't available under Administer > Communications > Print Page (PDF) Formats > Add PDF Page Format) so admin can set it for a given format and it get's populated for Print PDF Letter action if user selects a format that has it set.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sgladstone Sarah Gladstone
              • Votes:
                5 Vote for this issue
                Watchers:
                13 Start watching this issue

                Dates

                • Created:
                  Updated: