Welcome to the LimeSurvey Community Forum

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

Small Text in PDF Output

  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago - 9 years 6 months ago #112287 by Niall01
Small Text in PDF Output was created by Niall01
Hi,

I've installed my survey and I'm happy with how it works but it does something strange when I export the answers as a PDF. Most of the text is a normal (10 point) size but some of the text is very small.

See attached at the bottom of page one. Has anyone else had an issue like this, and is there a way I can correct it?

The only thing I can think of is that the small text is part of a sub-question set. I'm using the hosted service, version 2.05+.

Many thanks
Niall
Last edit: 9 years 6 months ago by Niall01. Reason: Missed version Info.
The topic has been locked.
More
9 years 6 months ago #112303 by Ben_V
Replied by Ben_V on topic Small Text in PDF Output
Niall,

try to edit the print_template.css file of the template used for your survey.
(There is a "template editor" icon in the main menu)
At he end of this file add this rule:
Code:
*{font-size:12pt !important}
Obviously, if you need more than 12pt, increase this number.

PS: Be carefull whith attached files. You may previously delete or obfuscate all personal info (like e-mail address), because those files will be indexed by major search engines and this can be a source of spam etc. ;)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The following user(s) said Thank You: Niall01
The topic has been locked.
  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #112318 by Niall01
Replied by Niall01 on topic Small Text in PDF Output
Many thanks. I'll give it a go.

Niall
The topic has been locked.
More
9 years 6 months ago #112322 by Ben_V
Replied by Ben_V on topic Small Text in PDF Output
BTW, another easy improvment of your printed document is to transform dynamically:
Yes [Y] ---> Yes
No [N] ---> No

If you need it, just paste at the end of your template.js file the following code:
Code:
$(function(){
$('.printanswersanswertext:contains("Yes [Y]")').text("Yes");
$('.printanswersanswertext:contains("No [N]")').text("No");
});

Clear the cache of your browser and try...
;)

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 6 months ago #112388 by DenisChenu
Replied by DenisChenu on topic Small Text in PDF Output

Niall wrote: I've installed my survey and I'm happy with how it works but it does something strange when I export the answers as a PDF. Most of the text is a normal (10 point) size but some of the text is very small.

Strange issue .

MAybe a bug, if you can report with the survey file in example (lss file).

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • Niall01
  • Niall01's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 4 months ago #127551 by Niall01
Replied by Niall01 on topic Small Text in PDF Output
Hi all,

Thank you for the suggestions (and apologies for the delay in responding, I have been on paternity leave). I've got around the issue by created a new version without the PDF export, it now exports in excel as a csv and I use a macro to put it into a nice format. If anyone would find the LSS useful then I'm happy to upload.

Thanks again
Niall
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose