View Issue Details

This issue affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
19249Bug reportsPrint Viewpublic2026-10-13 11:50
Reporterbaxterdmutt Assigned Toc_schmitz  
PrioritynoneSeverityminor 
Status closedResolutionfixed 
Product Version6.3.x 
Summary19249: jsPDF not printing datauri images as an image
Description

After finishing a survey and wanting to export as a pdf, everything works as it should except a datauri image prints texts instead of the image. After doing much googling I found a suggestion that this occurred in older versions of “jsPDF” It looks like Limesurvey is using 1.53 and 2.5.1 is available.
Is it possible to have it upgraded and any changes necessary made so that any datauri image in the survey is printed as an image instead of the text of the data.
I’m asking because the signature plugin works very well but is mostly useless because it’s not transferred to the pdf as the image.

Steps To Reproduce

Steps to reproduce

Create a test survey
Install the signature (not really a plugin. But a as question theme)
Enter <img src=‘{question decode of the signature}’/>
Attempt to “export pdf” at end of survey
###Expected Result
The datauri should be displayed as a png image

Actual result

The datauri is displayed as a long text field

TagsNo tags attached.
Bug heat4
Complete LimeSurvey version number (& build)6.2.8 to 6.3.4 at least
I will donate to the project if issue is resolvedNo
Browser
Database type & versionMysql
Server OS (if known)
Webserver software & version (if known)
PHP Version7.4
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2026-10-12 08:07

administrator   ~86320

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40784

LimeBot

LimeBot

2026-10-13 11:50

administrator   ~86383

Fixed in Release 7.6.0+261013

Related Changesets

LimeSurvey: master 07ef2260

2026-10-12 08:03

c_schmitz


Details Diff
Fixed issue 19249: An image filled in from an answer (e.g. a signature) was missing from the printed answers and their PDF export
Dev Print answers now keep data URI images (HTMLPurifier only accepts real PNG, GIF and JPEG content)
Dev Pasting or dropping an image file into the HTML editor no longer embeds it as a huge base64 data URI into the text
Affected Issues
19249
mod - application/controllers/PrintanswersController.php Diff File
mod - application/helpers/viewHelper.php Diff File
mod - assets/packages/ckeditor/config.js Diff File
add - tests/unit/helpers/ViewHelperPurifiedTest.php Diff File

Issue History

Date Modified Username Field Change
2023-11-17 21:41 baxterdmutt New Issue
2026-10-12 08:07 c_schmitz Changeset attached => LimeSurvey master 07ef2260
2026-10-12 08:07 c_schmitz Note Added: 86320
2026-10-12 08:07 c_schmitz Assigned To => c_schmitz
2026-10-12 08:07 c_schmitz Status new => resolved
2026-10-12 08:07 c_schmitz Resolution open => fixed
2026-10-12 08:07 c_schmitz Bug heat 0 => 2
2026-10-13 11:50 LimeBot Note Added: 86383
2026-10-13 11:50 LimeBot Status resolved => closed
2026-10-13 11:50 LimeBot Bug heat 2 => 4