Welcome to the LimeSurvey Community Forum

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

Survey summary and Export to PDF

More
2 years 10 months ago #216011 by auforg
Replied by auforg on topic Survey summary and Export to PDF
I'm glad to say our request for adding these 2 plugins to our hosted instance is being considered! :-)

But now I'm wondering… Will we really be able to effectively use them, while being in a hosted environment where we don't have access to the source code, but only to some plugins "configure" buttons or surveys "Theme editor"?

Could anyone tell us if these plugins require access to the source code installation or if everything (especially the PDF design) can be configured through LimeSurvey's web interface?

TIA!
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216012 by Joffm
Replied by Joffm on topic Survey summary and Export to PDF
No,
you only use Expression Manager.
If you download the plugin pdfReport there is a demo lss included.

Here a very small example.
Design your report to your wishes in the question text.
Code:
<h2>Hier sind die Ergebnisse für {F6a}</h2>
{F6a} ist {F6b} Jahre alt und sein Geschlecht ist <strong>{if(F6c==1,"männlich","weiblich")}</strong><br />
<br />
{F6a} kennt folgende Ubuntu-Tiere:<br />
{list(that.F1.shown)} und mag {F3_1.shown} am liebsten {F4.shown}.
<h2>Nun die Ergebnisse im einzelnen</h2>
 
<table border="1" collapse="collapse" width="50%">
    <thead>
        <tr>
            <th class="frage" colspan="3" style="background-color:#30529d;color:white;">F1. Welche der folgenden interessanten Ubuntu-Tiere kennen Sie?</th>
        </tr>
    </thead>
    <thead>
        <tr>
            <th class="tdueberq sp6" style="background-color: #B1C2E7;color:black;text-align:left;width:50%"> </th>
            <th class="tduebera sp3" style="background-color: #B1C2E7;color:black;text-align:center;width:25%" valign="middle">Ja</th>
            <th class="tduebera sp3" style="background-color: #B1C2E7;color:black;text-align:center;width:25%" valign="middle">Nein</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td class="tdquestion" style="text-align:left;width:50%">{F1_SQ001.question}</td>
            <td class="tdanswer" style="text-align:center;width:25%">{if(F1_SQ001=="Y","X","")}</td>
            <td class="tdanswer" style="text-align:center;width:25%">{if(F1_SQ001!="Y","X","")}</td>
        </tr>
---

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: auforg
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216013 by Joffm
Replied by Joffm on topic Survey summary and Export to PDF
Additionally you may have a look at this thread about limeMpdf
[url] forums.limesurvey.org/forum/plugins/1223...nting-surveys#205387 [/url]

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: auforg
The topic has been locked.
More
2 years 10 months ago #216026 by auforg
Replied by auforg on topic Survey summary and Export to PDF
Thanks a lot @Joffm for these clear examples!

Now my last concern would be about the scale of our survey: it currently has 124 questions! (yeah… I know… we are working on down-scaling it as much as we can)

So, will a single pdfReport question text space (a textarea I suppose) be able to contain the whole design? Or will we have to split it into multiple pdfReport questions? (is it even possible?)

Also, I understand the generated PDF will then be available as an answer attachment, correct? Because we will need to have a way of retrieving it through API calls after then, in which case get_uploaded_files will be the way, correct?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216028 by Joffm
Replied by Joffm on topic Survey summary and Export to PDF
1. The question text is implemented as type "text" in the database.
Of course, it's up to you.
Plain
{Q1.question}: {Q1}
{Q2.question}: {Q2.shown}
...
will not require a lot of space.
But if you use a lot of HTML and inline styling, you obviously will need more.
 

2, The initial requirement was

When the end user completes the survey, a summary page is dispalyed.

Now you add this new one

Because we will need to have a way of retrieving it through API calls after then,

This seems to be something different.
But there is the method "get_uploaded_files"

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: auforg
The topic has been locked.
More
2 years 10 months ago #216048 by auforg
Replied by auforg on topic Survey summary and Export to PDF
1. thanks for this precision ("text" type in DB); I was more concerned about the "textarea" limits than the DB limits, but we'll see…

2. thanks for the confirmation on "get_uploaded_files"; actually the need to generate a PDF, to be included in some external process, is our main goal, but I agree it was not expressed as such in this thread.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216052 by Joffm
Replied by Joffm on topic Survey summary and Export to PDF

 I was more concerned about the "textarea" limits

What "textarea"?
Sorry, I do not understand what you are talking about

There is no "textarea" involved.
You use the question text of a question "file upload".

Joffm
 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
More
2 years 10 months ago #216057 by auforg
Replied by auforg on topic Survey summary and Export to PDF
Well, the "question text", you fill it through a web form, right? And the usual (and largest) text input object in a web form is a <textarea>. So I was wondering if we could hit any limitation here.

I've read since then that some brother limit it to 512 Kio, which surely is large enough for most usage, so we should be ok. But it's funny I can't find any official statement about it… There can't be “no limit” for sure.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216107 by DenisChenu
Replied by DenisChenu on topic Survey summary and Export to PDF
No (know) browser limit
www.php.net/manual/en/ini.core.php#ini.post-max-size

And if you have a light internet connexion, even 512Ko can take time.

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.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216110 by Joffm
Replied by Joffm on topic Survey summary and Export to PDF
Look at the php settings "post_max_size" and "upload_max_filesize".

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 10 months ago #216112 by DenisChenu
Replied by DenisChenu on topic Survey summary and Export to PDF

Look at the php settings "post_max_size" and "upload_max_filesize".

Joffm
 
With textarea : i think only post_max_size is chekced.

BUT : the textarea is saved in a DB text type …

And even in multiple text question : it can broke : MSQL limit for a row are 8Mb

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.
The topic has been locked.
More
2 years 10 months ago #216172 by Indispirit
Replied by Indispirit on topic Survey summary and Export to PDF
An alternative method is to render your report in html first (which people seem to find easier to format than PDF) then using wkhtmltopdf.org/ which converts html to PDF via the command line.

It's easy enough to create an html version of your report in the final page text setting by using the expression manager to extract the answers, which also means you don't need to access the API.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose