CRM-7298 TCPDF CJK support patch

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 3.3.1
    • Fix Version/s: 3.4.alpha
    • Component/s: CiviEvent, Core CiviCRM
    • Labels:
      None

      Description

      TCPDF is used when generated mailing label and user badge of CiviEvent. I found the support issue is because tcpdf only setup for english user.

      The first part of patch is for font name. Setting up the font for better support of unicode / utf8. This setting come from example of tcpdf: http://www.tcpdf.org/examples/example_038.phps

      I'm pretty sure this patch also works to english user. And the patch won't embbed font into pdf. Client will automatic download font after opening the pdf by acrobat reader. But may need further test to see if setting font by this will cause problem.

      The second part of patch is install the missing font from original tcpdf package.

        Attachments

        1. tcpdf-fix-addfile.patch
          1.52 MB
          Jimmy Huang
        2. tcpdf-fix-civicrm.patch
          2 kB
          Jimmy Huang

          Activity

          [CRM-7298] TCPDF CJK support patch
          Donald A. Lobo added a comment -

          rajan:

          please fix this for 3.4

          Rajan P Mayekar added a comment -

          Hi, Jimmy.
          I tried this font (arialunicid0) , but it is only work with acrobat reader. When I open the pdf generated by this fort on Document Viewer ( ubuntu ), it shows blank.

            People

            • Assignee:
              Rajan P Mayekar
              Reporter:
              Jimmy Huang

              Dates

              • Created:
                Updated:
                Resolved: