Survey summary and Export to PDF

More
8 months 2 weeks ago #216011 by auforg
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!

Please Log in to join the conversation.

More
8 months 2 weeks ago #216012 by Joffm
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.
<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
Attachments:
The following user(s) said Thank You: auforg

Please Log in to join the conversation.

More
8 months 2 weeks ago #216013 by Joffm
Additionally you may have a look at this thread about limeMpdf
forums.limesurvey.org/forum/plugins/1223...nting-surveys#205387


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

Please Log in to join the conversation.

More
8 months 2 weeks ago #216026 by auforg
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?

Please Log in to join the conversation.

More
8 months 2 weeks ago #216028 by Joffm
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

Please Log in to join the conversation.

More
8 months 2 weeks ago #216048 by auforg
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.

Please Log in to join the conversation.

More
8 months 2 weeks ago #216052 by Joffm

 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

Please Log in to join the conversation.

More
8 months 2 weeks ago #216057 by auforg
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.

Please Log in to join the conversation.

More
8 months 2 weeks ago #216107 by DenisChenu
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.

Please Log in to join the conversation.

More
8 months 2 weeks ago #216110 by Joffm
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

Please Log in to join the conversation.

More
8 months 2 weeks ago #216112 by DenisChenu

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.

Please Log in to join the conversation.

More
8 months 2 weeks ago #216172 by Indispirit
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.

Please Log in to join the conversation.

More
8 months 2 weeks ago #216182 by auforg
Quick question: is there a default or auto-generated HTML template we could use with pdfReport, or do we really have to write a specific HTML template for every surveys (which also means manually process every fields in it, and re-implementing their display logic too)?

I saw in the README.md (at GitLab) that there are default stylesheets (CSS) from pdfReport and limeMpdf, but I can't find anything about a default or auto-generated HTML template, which would produce a basic default PDF for any survey. Did I miss something?

Please Log in to join the conversation.

More
8 months 2 weeks ago #216183 by DenisChenu
Project, but no time to work on it.

And bugs.limesurvey.org/view.php?id=14353

If LimeSurvey print sytem work out of the box, less needed.

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 following user(s) said Thank You: auforg

Please Log in to join the conversation.

More
8 months 2 weeks ago #216189 by Joffm
To answer one question of the first original post.

Export to PDF queXML : this option will generate a PDF without metadata, yet all the answers are truncated to the first 10 characters.

forums.limesurvey.org/forum/design-issue...-whole-answer#181273

Joffm


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

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now