- Posts: 25
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
PDF Plugin Table construction
- eyeballs
- Topic Author
- Offline
- Junior Member
Less
More
7 months 2 weeks ago #250279
by eyeballs
PDF Plugin Table construction was created by eyeballs
Hello Community:
Was wondering how to format tables using the PDF Report Plugin in this specific way:
The row will have 2 column that will fit 100 % of the page (We put the width as 100% in the pdf tab). However, we also want the 1st column to be 90% of the page and the second column 10%. We will have multiple rows with the same format.
here is a raw visual:
<
100%
>
<
column #1 @ 90%
><-- Column #2 --10%->
| 1) Question #1 This is the 1st column. Second column is over there >> | Yes |
___________________________________________________________________________________|
| 2) Question #2 This is the 1st column. Second column is over there >> | No |
|
How can this be accomplished?
Thank you
Was wondering how to format tables using the PDF Report Plugin in this specific way:
The row will have 2 column that will fit 100 % of the page (We put the width as 100% in the pdf tab). However, we also want the 1st column to be 90% of the page and the second column 10%. We will have multiple rows with the same format.
here is a raw visual:
<
100%
>
<
column #1 @ 90%
><-- Column #2 --10%->
| 1) Question #1 This is the 1st column. Second column is over there >> | Yes |
___________________________________________________________________________________|
| 2) Question #2 This is the 1st column. Second column is over there >> | No |
|
How can this be accomplished?
Thank you
Please Log in to join the conversation.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12941
- Thank you received: 3979
7 months 2 weeks ago #250285
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic PDF Plugin Table construction
Hi,
you talk about the plugin "pdfReport", right?
[url] gitlab.com/SondagesPro/ExportAndStats/pdfReport [/url]
All you have to do, is to create a HTML table in the question text of this question (type: upload)
Like:
As you see you can insert ExpressionScript to refer to your question texts and answers.
Here a rough example of your 90%/10% array
Here something more.
By the way:
Joffm
you talk about the plugin "pdfReport", right?
[url] gitlab.com/SondagesPro/ExportAndStats/pdfReport [/url]
All you have to do, is to create a HTML table in the question text of this question (type: upload)
Like:
Code:
<table border="1" collapse="collapse" width="100%"> <thead> <tr> <th colspan="3">F1. Welche der folgenden interessanten Ubuntu-Tiere kennen Sie?</th> </tr> </thead> <thead> <tr> <th style="text-align:left;width:90%"> </th> <th style="text-align:center;width:5%" valign="middle">Ja</th> <th style="text-align:center;width:5%" valign="middle">Nein</th> </tr> </thead> <tbody> <tr> <td style="text-align:left;width:90%">{F1_SQ001.question}</td> <td style="text-align:center;width:5%">{if(F1_SQ001=="Y","X","")}</td> <td style="text-align:center;width:5%">{if(F1_SQ001!="Y","X","")}</td> </tr> <tr> <td style="text-align:left" width="90%">{F1_SQ002.question}</td> <td style="text-align:center" width="5%">{if(F1_SQ002=="Y","X","")}</td> <td style="text-align:center" width="5%">{if(F1_SQ002!="Y","X","")}</td> </tr> ...
As you see you can insert ExpressionScript to refer to your question texts and answers.
Here a rough example of your 90%/10% array
Here something more.
By the way:
This refers to the built-in pdf report of the responses. So it is not related to the plugin "pdfReport"We put the width as 100% in the pdf tab
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
Please Log in to join the conversation.