Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

QueXML PDF print images

  • baxterdmutt
  • baxterdmutt's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 months 1 week ago #252243 by baxterdmutt
QueXML PDF print images was created by baxterdmutt
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server: 6.3.4
Survey theme/template:fruity
==================
Is there a way to have the pdf export print images. 
I’m using the SignaturePad add on and when I export to the PDF, instead of the png image, I get the base64 data image text. 

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #252254 by Joffm
Replied by Joffm on topic QueXML PDF print images
Hi,
as this queXML was designed for something quite different - the creation of a paper-pencil-questionnaire that can be scanned after completion - I do not recommend the use as a report.

With pdfReport you can create much more appealing reports.

And the image is displayed 
Here a rough sample
 

This browser does not support PDFs. Please download the PDF to view it: Download PDF



Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu, r0bis

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #252287 by DenisChenu
Replied by DenisChenu on topic QueXML PDF print images
pdfReport can use < img ="datauri" > directly

It was tested with gitlab.com/SondagesPro/ExportAndStats/generateGraphQuestion who create too datauri for image.

 

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

  • baxterdmutt
  • baxterdmutt's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 months 1 week ago #252288 by baxterdmutt
Replied by baxterdmutt on topic QueXML PDF print images
Hmm, when I do pdf report on 6.3.4 I do not get that. Instead I get the actual uridata

Hi,
as this queXML was designed for something quite different - the creation of a paper-pencil-questionnaire that can be scanned after completion - I do not recommend the use as a report.

With pdfReport you can create much more appealing reports.

And the image is displayed 
Here a rough sample
 

This browser does not support PDFs. Please download the PDF to view it: Download PDF



Joffm

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #252289 by Joffm
Replied by Joffm on topic QueXML PDF print images
What to reply without knowing your report design

Joffm 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago - 5 months 1 week ago #252291 by DenisChenu
Replied by DenisChenu on topic QueXML PDF print images

Hmm, when I do pdf report on 6.3.4 I do not get that. Instead I get the actual uridata

 

Did you try
Code:
<img src="{questioonCode.NAOK}">

And did you talk of pdfReport ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 5 months 1 week ago by DenisChenu.

Please Log in to join the conversation.

  • baxterdmutt
  • baxterdmutt's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 months 1 week ago #252292 by baxterdmutt
Replied by baxterdmutt on topic QueXML PDF print images
Denis, I have done it like this. In the last question I entered as explained :
<img src="{signature}"/>
so for mine it looks like this
<img src="{G02Q01}"/>When I finish the survey the base64 data is shown instead of the graphic.
What am I doing wrong?
 

pdfReport can use < img ="datauri" > directly

It was tested with gitlab.com/SondagesPro/ExportAndStats/generateGraphQuestion who create too datauri for image.


 

Please Log in to join the conversation.

  • baxterdmutt
  • baxterdmutt's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 months 1 week ago #252293 by baxterdmutt
Replied by baxterdmutt on topic QueXML PDF print images
Yes. That I just tried exactly that. 

Hmm, when I do pdf report on 6.3.4 I do not get that. Instead I get the actual uridata

 

Did you try
Code:
<img src="{questioonCode.NAOK}">

And did you talk of pdfReport ?

Please Log in to join the conversation.

  • baxterdmutt
  • baxterdmutt's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 months 1 week ago #252294 by baxterdmutt
Replied by baxterdmutt on topic QueXML PDF print images
Yes. I tried pdfReport. But it also displayed the base64 text. 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #252296 by DenisChenu
Replied by DenisChenu on topic QueXML PDF print images
Unsure : but maybe you need to add data:image/png;base64, ?

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.

Please Log in to join the conversation.

  • baxterdmutt
  • baxterdmutt's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
5 months 1 week ago #252297 by baxterdmutt
Replied by baxterdmutt on topic QueXML PDF print images
what do you mean. What would that look like?

Unsure : but maybe you need to add data:image/png;base64, ?

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 months 1 week ago #252298 by Joffm
Replied by Joffm on topic QueXML PDF print images
I do not see any issue.

Here the structure of my pdfReport.
Very simple with one table (just to show a bit more) and the image (Q3)
Code:
<p>My pdf report</p>
 
<table border="1" collapse="collapse" width="70%">
    <tbody>
        <tr>
            <th colspan="2">You selected</th>
        </tr>
        <tr>
            <td style="width:80%">Subquestion 1</td>
            <td style="width:20%">{if(Q1_SQ001=="Y","Yes","No")}</td>
        </tr>
        <tr>
            <td style="width:80%">Subquestion 2</td>
            <td style="width:20%">{if(Q1_SQ002=="Y","Yes","No")}</td>
        </tr>
    </tbody>
</table>
<br /><br />And here the image<br /><img src="{Q3}" />

The pdfReport settings:
 

The preview
 
and the pdf itself
 

What did you do?

Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

Lime-years ahead

Online-surveys for every purse and purpose