Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: PDF Export Layout

PDF Export Layout 2 years 5 months ago #104650

  • StevenGo
  • StevenGo's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hello,
I would like to modify the pdf-layout of the exported results. But I have no idea where to do so. It looks like it can't be done in the templates. And I can't find the php-file where it's config is stored.

So any help would greatly appreciated! ;-)

Thanx in advance!
The administrator has disabled public write access.

PDF Export Layout 2 years 5 months ago #105114

  • Nana111
  • Nana111's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
HI there
For me ,i used to modify the pdf layout using a PDF document editor SDK.It offers a robust feature set to support all your PDF document level processing needs.In the process of document page modification and manipulation,there are two programming classes that will be used. One is PDFPage and the other is PDFDocument.You can also have a try.
The administrator has disabled public write access.

PDF Export Layout 1 year 10 months ago #112323

  • tammo
  • tammo's Avatar
  • Offline
  • Premium Lime
  • Posts: 325
  • Thank you received: 58
  • Karma: 16
Probably your problem has been solved, but just as a reminder for people that landed on this page through a search engine:

since the PDF output from LimeSurvey is a bit hard to alter, we use MPDF implemented in the backend. This works great, but you have to do some styling yourself.

www.mpdf1.com/mpdf/index.php

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.
The following user(s) said Thank You: Ben_V, jerryd

PDF Export Layout 6 months 1 week ago #129893

  • jerryd
  • jerryd's Avatar
  • Offline
  • Junior Lime
  • Posts: 31
  • Karma: 1
hello tammo i was looking for this kind of problem and i found mpdf but i don't know how to install mpdf in my lime survey surver pls could you tell me? how to do?



\
Thanks!
Thanks alot
jerryd
The administrator has disabled public write access.

PDF Export Layout 6 months 1 week ago #129912

  • tammo
  • tammo's Avatar
  • Offline
  • Premium Lime
  • Posts: 325
  • Thank you received: 58
  • Karma: 16

Tammo ter Hark
Tools for Research
Haarlem/Amsterdam, The Netherlands
The administrator has disabled public write access.
The following user(s) said Thank You: jerryd

PDF Export Layout 6 months 1 week ago #129926

  • jerryd
  • jerryd's Avatar
  • Offline
  • Junior Lime
  • Posts: 31
  • Karma: 1
tnx for the fast reply sorry i am not familiar with this kind of things i don't know how to use it i was follow the instruction to install and it's installed but is their any thing i had to add to let it work .



Thanks,
Thanks alot
jerryd
The administrator has disabled public write access.

PDF Export Layout 6 months 1 week ago #129945

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
tammo wrote:
Probably your problem has been solved, but just as a reminder for people that landed on this page through a search engine:

since the PDF output from LimeSurvey is a bit hard to alter, we use MPDF implemented in the backend. This works great, but you have to do some styling yourself.

www.mpdf1.com/mpdf/index.php
Hi tammo, in one of my plugin, i use tcpdf BUT with $pdf->writeHTML : i take the HTML from a question text, and add some basic css. (example from tcpdf website : www.tcpdf.org/examples/example_054.pdf)

I don't have a good css margin/padding/position system but it work good.

css padding and margin are used with mpdf ?
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

PDF Export Layout 6 months 1 week ago #129954

  • JanE
  • JanE's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 8
  • Thank you received: 3
  • Karma: 1
Hi Denis,
DenisChenu wrote:
I don't have a good css margin/padding/position system but it work good.
css padding and margin are used with mpdf ?
On behalf of Tammo: margins, padding and positioning are an oldie in mPDF. They practice what they preach: mpdf1.com/examples/new_features_4_0.pdf (page 3).

Or a little bit more recent: mpdf1.com/examples/mpdf54demo.pdf

Open the examples on http://www.mpdf1.com/mpdf/index.php?page=Examples and try to find something that they do not support...
Last Edit: 6 months 1 week ago by JanE.
The administrator has disabled public write access.

PDF Export Layout 6 months 1 week ago #129962

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9254
  • Thank you received: 1319
  • Karma: 382
JanE wrote:
On behalf of Tammo: margins, padding and positioning are an oldie in mPDF. They practice what they preach: mpdf1.com/examples/new_features_4_0.pdf (page 3).

Or a little bit more recent: mpdf1.com/examples/mpdf54Demo.pdf
Hi,

Yes but it's "code generated" system. Here , i use only HTML done by "admin user" with HTML editor. Adding a simple css
div{margin:0 auto; width: 50%} for example don't really work .

I ask for publication of the plugin and send the git link here. This can be tested with mpdf : HTML+CSS only :).
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

PDF Export Layout 3 months 4 days ago #134783

  • OMdev
  • OMdev's Avatar
  • Offline
  • Platinum Lime
  • Posts: 326
  • Thank you received: 34
  • Karma: 15
After a long day of exploring different options I have decided to go with phantomjs. :)
Survey Designer and Programmer
"I always suggest to have a group by group display layout and create a seprate group for each question. This will be extra work but you will get flexiblity to create your question by using more than more lime survey question types."
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.246 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form