Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-37252

Add non-latin characters support to PDF export in T&Q (and upgrade itext)

    XMLWordPrintable

    Details

    • 10 status:
      Resolved
    • Previous Issue Keys:
      SAM-2276

      Description

      The function of 'Download PDF' in print page doesn't support non-latin characters.
      If the username contains non-latin characters, the characters will be skipped.
      This patch add non-latin characters support to this function and use a property 'pdf.default.font' to set the font to use.
      Actually, this is a PDF font issue, which also affect function use FOP to produce PDF. Some information can be found in SAK-21908
      I use the property 'pdf.default.font' since it is used by SAK-21922 .
      The version of iText is updated from 2.0.7 to 2.1.7 to support auto scan system fonts. iText 2.1.7 will scan folders including '/usr/share/fonts' while iText 2.0.7 only scan '/usr/share/fonts/default/TrueType'. So iText 2.1.7 can work much better in Linux envirnment.
      It seem that the file 'src/java/org/sakaiproject/tool/assessment/pdf/itext/HTMLWorker.java' is modified from the iText 2.0.7, may be some additional modification is needed.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  samigoteam SAMIGO TEAM (Inactive)
                  Reporter:
                  gaojun Gao Jun
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration