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

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 months 3 days ago #255090 by DenisChenu
No javascript, no PHP

Only twig in gitlab.com/SondagesPro/coreAndTools/lime....twig?ref_type=heads

If you want more data sent : please : create a Merge Request on  gitlab.com/SondagesPro/ExportAndStats/pd...ort/-/merge_requests
(you can create a gitlab.com/SondagesPro/ExportAndStats/pdfReport/-/issues but…)

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.

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
10 months 3 days ago - 10 months 3 days ago #255093 by bhavik
My Other Question was can I generate pdfs on this page in Limesurvey by using pdfReport with Limempdf
 
Last edit: 10 months 3 days ago by bhavik.

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
10 months 3 days ago #255094 by DenisChenu
No

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.

Please Log in to join the conversation.

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

I am now successfully using Limempdf with pdfReport. One thing I want to change in the pdf layout is the tables have padding on the page I want to use the whole width of the page. I want no spaces on the left and right of the tables

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 3 weeks ago #255841 by DenisChenu
I don't see margin on your table here.
Else mpdf.github.io/tables/table-layout.html

About page padding : i didn't update anything default fro mpdf. Maybe yoiu can try to set some @page css : mpdf.github.io/paging/using-page.html
in gitlab.com/SondagesPro/coreAndTools/lime....twig?ref_type=heads

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.

Please Log in to join the conversation.

  • bhavik
  • bhavik's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 months 3 weeks ago #256013 by bhavik
Thankyou so Much for your reply but I want to adjust the right-margin and left-margins of the pdf generated found the solution and changed the Default settings. My Final question is if I were to use body.twig in the theme editor how will I target a specific question or a survey id so that the report gets generated in a upload question. the code for my cuurent survey is too long and I want to use a for loop for looping through all question in the survey
 

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 3 weeks ago #256015 by DenisChenu
You can update PHP code of LimeMpdf if needed.

body.twig is not shown in theme editor (for 2 reasons) : you must edit it via SFTP, FTPS or SSH.

I don't understand your target ?

If you update body.twig in your personal survey theme : it apply to all pdfReport question in survey using this theme.

Then
1. extend theme
2. In views/subviews/mpdf/ directory of this new theme : put your body.twig file (via FTP)
3. Test

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.

Please Log in to join the conversation.

More
7 months 1 week ago #261271 by linuxhooligan
Replied by linuxhooligan on topic pdfReport plugin - How to Create a Custom Template
Apologies for bumping this thread. Can someone explain to me the following:

1) What is the relationship between pdfReport and LimePdf? Why and how are they used together?

2) Can pdfReport be used to give a user a pdf report of their resutls at the end of the survey? The Sondages demo page suggests the answer is yes but I am confused by the correlation with Limesurvey and the usecases for either / both products.

Thank you kindly.

Please Log in to join the conversation.

  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 months 1 week ago #261273 by Joffm
Hi,
1. See here
[url] gitlab.com/SondagesPro/ExportAndStats/pdfReport [/url]

With limeMpdf pluginWhen using limeMpdf plugin, there are already some CSS class inspired by Bootstrap. See limeMdpf demo file for a lot of available class.

The demo files you find in the folder "demo" of the plugin.
Short: With limeMpdf you can use the bootstrap options.

2. Yes, see the options in the settings
 

Attachment not found



Joffm

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

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
7 months 1 week ago - 7 months 1 week ago #261318 by DenisChenu
> The demo files you find in the folder "demo" of the plugin.

No :) In the plugin configuration :) (need update plugin )
 

Attachment not found



> Short: With limeMpdf you can use the bootstrap options.

Long :
  1. mpdf is really more powerfull than tcpdf on HTML support .
  2. LimeMpdf allow you to have your own header/footer/content etc …
  3. LimeMPDF include some dedicated tag for example : in the demo survey : i use <radio> and <radio-checked> tag

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: 7 months 1 week ago by DenisChenu. Reason: demo files
The following user(s) said Thank You: linuxhooligan

Please Log in to join the conversation.

More
6 months 3 weeks ago #263360 by linuxhooligan
Replied by linuxhooligan on topic pdfReport plugin - How to Create a Custom Template
Thank you kindly, that helps.

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose