Use question text to create a pdf report : send it by email, save in survey.
This plugin is currently compatible with LimeSurvey 3, 5, 6 and 7
- Go to your LimeSurvey Directory
- Change into subdirectory 'plugins'
- Clone in plugins/pdfReport directory
git clone https://gitlab.com/SondagesPro/ExportAndStats/pdfReport.git pdfReport
- Download https://extensions.sondages.pro/IMG/auto/pdfReport.zip
- Extract :
unzip pdfReport.zip - Move the directory to plugins/ directory inside LimeSurvey
- Create a upload question type
- Activate pdfReport : Use this question as pdf report. to Yes
- The pdf generated use the text of this question . You can use expression manager, and class and style to make a beautifull report.
- Remind the default system of this question are totally deactivated
- Pdf report are saved as files uploaded in survey
- Pdf is done and saved only when survey is activated, and when user submit the survey
- See other setting
You can use inline style in the content of the question text. For example, you can use <strong style='color:red;font-size:18pt'>A big and red sentence</strong>. Remind PDF is not web, usage of position:abolute or float didn't work exactly as excpected.
By default, the plugin use tcpdf and WriteHTML function. The plugin include a basic css file by default. You can replace the css included in the template used by the survey with a pdfreport.css in the files directory of the template.
See more example on tcdpf website : inline style or usage of a css file.
When using limeMpdf plugin, there are already some CSS class inspired by Bootstrap. See limeMdpf demo file for a lot of available class.
You can update more content with limeMpdf using files in your adapted theme templete files.
Tcpdf can use <br pagebreak="true" /> or <page> content </page> for page broke, you can use it in the content of the question text. HTML is filtered leaving this part.
LimeMpdf use <pagebreak> or <pagebreak /> directly, plugin is adpated to allow <br pagebreak="true" /> for pagebreak.
You can include image with <img src="/upload/files/picture.png" /> or with Data URI. All image are validated before included in the pdf and replaced by a white 1px size picture if not available. It's better to use local image (or DATA uri) for speedest generation of the pdf.
You can check two sample of pdf report:
- Pdf report simple test survey with picture and style
- Pdf Report with LimeMpdf and usage od Bootstrap CSS
- HomePage http://extensions.sondages.pro/
- Copyright © 2015-2026 Denis Chenu https://sondages.pro
- Copyright © 2017 Réseau en scène Languedoc-Roussillon https://www.reseauenscene.fr/
- Copyright © 2015 Ingeus http://www.ingeus.fr/
Distributed under GNU AFFERO GENERAL PUBLIC LICENSE Version 3 licence
- Report Issues https://gitlab.com/SondagesPro/ExportAndStats/pdfReport/-/work_items
- Professional support https://support.sondages.pro/
If you find this project useful, you can support its development through Donate, Liberapay, or OpenCollective. Thank you!
Code quality and security are continuously analyzed by SonarCloud CodeRabbit, Snyk, and Semgrep.
Thanks to GitLab for providing the hosting platform, and to SonarCloud, CodeRabbit, Snyk, and Semgrep for making their services available to open source projects.