GithubHelp home page GithubHelp logo

sondagespro / pdfreport Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 2.0 2.65 MB

Generate pdf inside your survey, mirror of gitlab repo

Home Page: https://extensions.sondages.pro

License: GNU Affero General Public License v3.0

CSS 10.63% PHP 89.37%
limesurvey

pdfreport's Introduction

pdfReport

Use question text to create a pdf report : send it by email, save in survey.

This plugin is currently compatible with LimeSurvey 3.X and 5.X version

Installation

Via GIT

  • Go to your LimeSurvey Directory
  • Change into subdirectory 'plugins'
  • Clone in plugins/pdfReport directory git clone https://gitlab.com/SondagesPro/ExportAndStats/pdfReport.git pdfReport

Via ZIP dowload

Documentation

  • 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

Style and css usage

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.

With tcpdf

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.

With limeMpdf plugin

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.

New page

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.

Image inclusion

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.

Sample survey

You can check two sample of pdf report:

Home page & Copyright

Distributed under GNU AFFERO GENERAL PUBLIC LICENSE Version 3 licence

pdfreport's People

Contributors

agru avatar shnoulle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pdfreport's Issues

"QuestionAttribute".".gid" not defined

Hello!

I'm having some issue while using this plugin. Everything works fine if the survey is set to "question by question" or "all in one", but if it is set to "group by group" I get the error message "QuestionAttribute".".gid" not defined. Is there a way to solve this issue?

My system configuration is:

  • LimeSurvey version: 3.28.59
  • LimeSurvey build: 230517
  • Operating system: Linux 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64
  • PHP version: 7.4.33
  • Web server software: Apache
  • Database driver: mysql
  • Database driver version: mysqlnd 7.4.33
  • Database server version: 8.0.33-0ubuntu0.20.04.2

Thank you very much!

Invalid inherit template directory

Hi,

I was checking out your plugin and saw the following errors occuring when a survey is finished. Since I am really no expoert in php/webservers and stuff I am pretty baffled.
CException.zip

I am running LimeSurvey Community Edition Version 5.2.4+211129.

Any help is very much appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.