View Issue Details

This bug affects 1 person(s).
 8
IDProjectCategoryView StatusLast Update
09741Bug reportsImport/Exportpublic2015-07-06 01:36
Reporterboriskazmin Assigned Toaesteban  
PrioritynormalSeverityminor 
Status closedResolutionwon't fix 
Product Version2.05+ 
Summary09741: Incorrect text size of questions with HTML in PDF with results
Description

Questions with specification of font-size (created using WYSIWYG editor) are displayed too small in the PDF with results produced by the PDF Export on the final step of the survey.

Steps To Reproduce
  1. Create the survey with default template and possibility of printing results for the respondents.

  2. Create one question for the survey. Use WYSIWYG editor to specify the size of the question text (14 pixels).

  3. The question is created with the following HTML: <span style="font-size:14px;">Question text</span>

  4. Take the survey and press "Print results" on the final step.

  5. Press "Export PDF".

Additional Information

Suggestion to strip tags when creating PDF for export (PrintanswersController.php):

                if (substr($sFieldname,0,4) == 'gid_')
                {
                    $oPDF->addGidAnswer(strip_tags($fname[0]));
                }
                elseif ($sFieldname=='submitdate')
                {
                    if($sAnonymized != 'Y')
                    {
                        $oPDF->addAnswer(strip_tags($fname[0]).&quot; &quot;.strip_tags($fname[1]), strip_tags($fname[2]));
                    }
                }
                elseif (substr($sFieldname,0,4) != 'qid_') // Question text is already in subquestion text, skipping it
                {
                    $oPDF->addAnswer(strip_tags($fname[0]).&quot; &quot;.strip_tags($fname[1]), strip_tags($fname[2]));
                }
TagsNo tags attached.
Bug heat8
Complete LimeSurvey version number (& build)150211
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMySQL 5.5.23
Server OS (if known)Windows Server 2012
Webserver software & version (if known)IIS 8
PHP Version5.3.29

Users monitoring this issue

aesteban, boriskazmin

Activities

DenisChenu

DenisChenu

2015-07-03 16:34

developer   ~32613

No, no , no .... Please , don't strip tags !

It's really better now.

We strip tags before, we don't strip actually : it's better !

aesteban

aesteban

2015-07-06 01:35

developer   ~32621

I agree with @DenisChenu. We already discussed about it in the past. Closing this bug.

Issue History

Date Modified Username Field Change
2015-07-01 12:25 boriskazmin New Issue
2015-07-01 12:26 boriskazmin Issue Monitored: boriskazmin
2015-07-02 12:48 aesteban Issue Monitored: aesteban
2015-07-03 16:34 DenisChenu Note Added: 32613
2015-07-06 01:35 aesteban Note Added: 32621
2015-07-06 01:36 aesteban Status new => resolved
2015-07-06 01:36 aesteban Resolution open => won't fix
2015-07-06 01:36 aesteban Assigned To => aesteban
2015-07-06 01:36 aesteban Status resolved => closed