Welcome to the LimeSurvey Community Forum

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

pdfReport plugin - How to Create a Custom Template

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #254823 by bhavik
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.2.10
Own server or LimeSurvey hosting: Own AWS server
Survey theme/template: Customised Bootswatch theme


Hello Team,

I have successfully installed pdfReport Plugin and created a file upload question and made the changes in its settings. I am attaching my LSG structure along here, I want to render its questions in the pdf. Where should I make changes and what kind of script I should use to render the questions in the pdf. Can anyone help me showing a script on how to render the questions and its answers in the pdf, also currently I can only download the pdf after I test the survey and click on "print your answers", is there a way i can download the pdf from the "responses" in the settings. So that I can download a admin pdf for every participant?


Thanks.

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #254824 by bhavik
Here is the LSG structure in my survey

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 day ago - 10 months 1 day ago #254827 by Joffm
Please, neither lsq nor lsg exports.
Only lss.

As far as I remember there is a demo file in the plugin, folder "demo"

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 10 months 1 day ago by Joffm.

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #254829 by bhavik
Here is the lss file

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
10 months 1 day ago - 10 months 1 day ago #254832 by Joffm
Did you import the demo?

And you create your report using HTML, css and ExpressionScript, no php.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 10 months 1 day ago by Joffm.

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 1 day ago #254833 by bhavik
We are not using limempdf as we dont want to send survey via emails to participants, we want to use pdfReport on the admin side to have customized pdfs as per our Requirements. We want to develop a custom pdf so we as an admin can get a desired view of the participants responses. Yes we have the demo file when we installed the pdfReport zip file and uploaded it as a plugin. Please correct me if Im wrong.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 months 4 weeks ago - 9 months 4 weeks ago #254853 by DenisChenu
Did you look at the README ? And the demo files ?
gitlab.com/SondagesPro/ExportAndStats/pdfReport#sample-survey
gitlab.com/SondagesPro/ExportAndStats/pd...t/-/tree/master/demo

Else
Custom template are included in limempdf

All this file : gitlab.com/SondagesPro/coreAndTools/lime.../mpdf?ref_type=heads

Can be replaced by your Survey theme
(but only via FTP currently (LS core issue))

For example : you can totally remove content usage gitlab.com/SondagesPro/coreAndTools/lime....twig?ref_type=heads

in you own theme and construct whole body at this place.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
Last edit: 9 months 4 weeks ago by DenisChenu.

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 months 4 weeks ago #254883 by bhavik
Where should I import the Demo, when I installed the plugin, I had the demo file in the pdfReport.zip file, by creating report you mean changing the HTML, css and ExpressionScript in the upload Question I created? What kind of code should I add to render question?

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 months 4 weeks ago #254884 by bhavik
Your LimeSurvey version: 6.2.10

When I try to install Limempdf in the plugins Manager, I cannot as I have version 6.2.10, it goes for an Error such that the plugin does not support your limesurvey version.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Away
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 months 4 weeks ago - 9 months 4 weeks ago #254885 by Joffm

Where should I import the Demo

As you import all lss files.

In the demo there are 2 *.lss exports
 
The second uses "limeMpdf" additionally.


And have a look at the "config.xml".
Is Version 6 in the compatibility section?
If not, add it.

Joffm


 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 9 months 4 weeks ago by Joffm.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
9 months 4 weeks ago #254886 by DenisChenu

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: Joffm

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 months 3 weeks ago #255089 by bhavik
Hello Team,

Can I use Limempdf and have an export option for the responses in the responses tab for PDFs through Limempdf Instead of having the general Limesurvey Pdf option. Also I have to write long codes for pdf generation, can I use a for loop using javascript or PHP for looping through questions.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose