View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
09423Bug reportsImport/Exportpublic2014-12-30 12:23
Reportergeniusrohit Assigned Toadamzammit  
PrioritynormalSeverityminor 
Status closedResolutionnot fixable 
Product Version2.05+ 
Summary09423: QueXML Export - Incorrectly rendering Unicode document
Description

I have created one form with LimeSurvey setting language as "Marathi" and font is created with unicode script for Marathi using Google Inputs tool

When I export the survey with Export to queXML feature, rendered pdf contains broken unicode format as attached

I have attached following Files

  1. Output received when clicked "Printable Version" - print_version_rendered_correctly.pdf
  2. Output Received when clicked "QueXML Export" - quexml_774317_mr.xml, quexml_774317_mr.pdf, quexf_banding_774317_mr.xml
    Dropbox : goo.gl/43SSLq
    (I am unable to upload multiple files as attachment therefore I have uploaded it to dropbox)

Now though my print version is rendered properly, pdf exported in QueXML export have rendered Unicode text incorrectly.

Steps To Reproduce

Demo Survey published on demo instance of lime survey website
http://demo.limesurvey.org/index.php?r=admin/survey/sa/view/surveyid/774317

  1. Create form with language selecting Hindi / Marathi
  2. Use Export feature to queXML
  3. PDF generated in this output folder contains incorrectly formatted unicode characters.
    (To compare correct formatting and incorrect please also do export to print version and then you can see difference between pdf and print version)
Additional Information

This is getting recreated on demo version as well.

TagsNo tags attached.
Attached Files
screenshot_mr.jpg (124,654 bytes)
Bug heat8
Complete LimeSurvey version number (& build)140320
I will donate to the project if issue is resolvedYes
Browser
Database type & versionmysql
Server OS (if known)windows/ubuntu
Webserver software & version (if known)apache
PHP Versionphp 5.5

Users monitoring this issue

adamzammit, mfaber

Activities

geniusrohit

geniusrohit

2014-12-26 13:27

reporter   ~31348

Reminder sent to: adamzammit

As per notes from Mazi in forum, Could you please look into this
(https://www.limesurvey.org/en/forum/development/99248-quexml-export-incorrectly-rendering-unicode-document)

mfaber

mfaber

2014-12-28 23:47

reporter   ~31361

geniusrohit, please have a look at the attached screenshot. Is this the problem you see (dotted circles, on the right side of the screenshot) and correct on the left side?
If yes, this seems to be a rendering problem. Right side is firefox, left side is sumatraPDF displaying the same file.

mfaber

mfaber

2014-12-28 23:51

reporter   ~31362

This might be of interest concerning the dotted circles:
http://www.garretwilson.com/blog/2013/06/29/browser-devanagari-support-subtleties.xhtml

geniusrohit

geniusrohit

2014-12-29 05:24

reporter   ~31364

In Dropbox folder : https://www.dropbox.com/sh/mc49f1v6tfz7c62/AAAYYxABGo9T4XHHHq89gHrHa?dl=0
I have added one file with name "print_version_rendered_correctly.pdf" its print version exported from limesurvey which is visible correctly.
Unlike quexml pdf or images you have shown this file shows text exactly it supposed to be seen.

I am not sure if its client side rendering problem or way limesurvey is generating the pdf during quexml export.

mfaber

mfaber

2014-12-29 15:34

reporter   ~31379

Oh yes, I see the problem.
Unfortunately this seems to be a known issue/limitation of tcpdf (with thich limesurvey renders pdf). After trying a lot of different fonts, I found this blog post:
http://rrbits.com/epb/2013/02/23/tcpdf-indic-script-support/

geniusrohit

geniusrohit

2014-12-29 15:59

reporter   ~31380

Yup seems relevant to concern I have raised. Can you suggest any workaround? I need to basically achieve following and for that I need PDF

  1. I will export this queXML format
  2. Print the Forms with PDF generated to be filled manually
  3. Process the scanned forms thru queXF to generate survey results.

If I can not have readable print of PDF generated matching queXML file then queXF will not able to process it and I am stuck! As its limitation of tcpdf I understand it will be difficult to fix but can we have any other workaround or way to generate pdf by passing quexml file?

Thanks a lot for all this research so far!

mfaber

mfaber

2014-12-29 18:44

reporter   ~31387

Indeed difficult. You may try to correct the misspelled text in a PDF editor and pass this form to your participants.
If you manage without changing the layout of the form (eg. position of the tick-boxes on the form) queXF should still be able to read them.

Issue History

Date Modified Username Field Change
2014-12-26 12:25 geniusrohit New Issue
2014-12-26 12:25 geniusrohit File Added: limesurvey_survey_774317.lss
2014-12-26 13:27 geniusrohit Issue Monitored: adamzammit
2014-12-26 13:27 geniusrohit Note Added: 31348
2014-12-26 19:58 Mazi Assigned To => adamzammit
2014-12-26 19:58 Mazi Status new => assigned
2014-12-26 20:28 mfaber Issue Monitored: mfaber
2014-12-28 23:42 mfaber File Added: screenshot_mr.jpg
2014-12-28 23:47 mfaber Note Added: 31361
2014-12-28 23:51 mfaber Note Added: 31362
2014-12-29 05:24 geniusrohit Note Added: 31364
2014-12-29 15:34 mfaber Note Added: 31379
2014-12-29 15:59 geniusrohit Note Added: 31380
2014-12-29 18:44 mfaber Note Added: 31387
2014-12-30 12:23 c_schmitz Status assigned => closed
2014-12-30 12:23 c_schmitz Resolution open => not fixable
2021-08-10 21:52 guest Bug heat 4 => 8