Download PDF doesn't support special characters

Description

When an assessment question includes special characters (e.g. Greek letters) they do not appear in the PDF export. However, they do appear to students when they are taking the assessment and the special characters also appear in the "Print HTML" option, but not the PDF.

STEPS TO REPRODUCE:
Create an assessment and add a question including a Greek letter in the question or answer.
Choose "Print"
Choose "Download PDF"

RESULT:
Either a damaged file or a PDF that omits the Greek letter.

Attachments

5
  • 04 Aug 2014, 02:47 AM
  • 04 Aug 2014, 02:47 AM
  • 12 Jun 2013, 08:45 AM
  • 12 May 2013, 08:36 AM
  • 03 May 2013, 03:55 AM

Activity

Show:

Juanjo Meroño October 3, 2014 at 6:03 AM

Verified Revision: 313998

Hudson CI Server August 13, 2014 at 4:23 PM

UNSTABLE: Integrated in sakai-trunk-java-1.7 #350 (See http://builds.sakaiproject.org:8080/job/sakai-trunk-java-1.7/350/)
https://sakaiproject.atlassian.net/browse/SAM-1674#icft=SAM-1674 Patch from Raul to allow PDFs with correct internationalized characters by using a good font like the nicely-licensed Dejavu (ottenhoff@longsight.com: rev 311941)

Sam Ottenhoff August 13, 2014 at 1:41 PM

Thanks for the patch Raul!

Trunk commit r311941

Raúl Sánchez Vegas August 6, 2014 at 6:28 AM

Hi Gao Jun

Our solution is based on using DejaVu Sans as default font. DejaVu Sans is a free-license font type. You are also able to specify other font using the property "pdf.default.font". So it depends on the institution to use a free license font.

https://sakaiproject.atlassian.net/browse/SAM-2276#icft=SAM-2276 patch is based on installing the font to server and configurating it with 'pdf.default.font'. We agree with your solution. However, our colleages from the Systems Department asked us to find an alternative solution because this solution means that the server configuration will change just for samigo needs. What do you think about that?

Thanks,
Raúl

Gao Jun August 5, 2014 at 8:47 PM

I think distribute a font within Sakai is not a good solution. Besides potential licenses problem, there's no font can support all the languages in Sakai (as far as I know).

So, it's better to install font to server and config it with 'pdf.default.font'.

Fixed

Details

Priority

Affects versions

Fix versions

Assignee

Reporter

Environment

Chrome 18 and Firefox 11 on Mac OSX Lion

Created April 19, 2012 at 12:19 PM
Updated April 17, 2018 at 8:32 AM
Resolved August 13, 2014 at 1:41 PM

Flag notifications