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

TOPIC: About images and PDF export

About images and PDF export 4 years 6 months ago #72754

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Hello LS Community,

I am trying to export my survey results to a PDF file. However, I couldn't manage to include images in the PDF file. The images are working in HTML view. "Show graphs" option is selected, of course :)

Any help on this issue will be appreciated.
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72773

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Did you tick the "create graphs" option?

Which Limesurvey version do you use? it works fine here at the latest 1.91 version.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72778

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Of course :) Ticked "Create Graphs" on the same screen, accessed using the pie chart icon on the top. On that screen, I can choose HTML, PDF or Excel.

I am using the latest version available. I upgrade using the admin panel, as the upgrade released.
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72790

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Does creating grapwork fine when using HTML output?

It works fine here, see attachment:

File Attachment:

File Name: Survey_243...rvey.pdf
File Size:126 KB

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72794

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Yes, it creates graphs when HTML is selected.

I am thinking that it can be server issue. Do you have any idea about the PDF conversion process of LimeSurvey? What libraries are needed on server side, the process or the files that makes the conversion?
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72808

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Does it create the PDF without images?

Check the server's error log, are there any errors reported when trying to export charts as PDF?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72822

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
It creates PDF in any cases, but without images. It is some kind of silly but, I have set the font variable in config.php to VeraMono.ttf which I have downloaded from a free font website and everything is worked. I have tried this time on a Windows computer and using Adobe Reader to view PDF files. My previous trials were on a Ubuntu machine using its default PDF viewer.

I am going to try vera.ttf, distributed with LimeSurvey package, and test it again, on Windows and Ubuntu.
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72842

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Please also switch on debug mode by adding the following line to your config.php file:
$debug = '1';

Are there any additional errors reported on top of the page?

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72849

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Thank you for your assistance Mazi. I have managed to show the graphs on PDFs. The problem is that I have to define $chartfontfile variable. If it is not defined, PDF conversion seems to be corrupted and doesn't show graphs, especially readers different than Adobe. Sounds silly, but it works :)

Thanks :)
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72886

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
If you can easily reproduce the problem, please open a ticket at our Bugtracker so that at least a meaningful error message will be implemented.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #72935

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9293
  • Thank you received: 1327
  • Karma: 384
Cyrolancer wrote:
Sounds silly, but it works :)
Oh yes !

I test with evince on Fedora, and same think. But in a 1.90 version it work like a charm ...
please open a ticket at our bugtracker

Denis :)
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.

About images and PDF export 4 years 6 months ago #72942

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Mazi wrote:
If you can easily reproduce the problem, please open a ticket at our Bugtracker so that at least a meaningful error message will be implemented.

Let me check out other factors (like server issues, user entries etc.) and I will submit the a complete analysis as soon as possible.
Last Edit: 4 years 6 months ago by Cyrolancer.
The administrator has disabled public write access.

About images and PDF export 4 years 6 months ago #73004

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5974
  • Thank you received: 366
  • Karma: 260
Thanks. Please post the link here aftewards.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

About images and PDF export 4 years 4 months ago #76508

  • Cyrolancer
  • Cyrolancer's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 17
  • Karma: 0
Hello,

I am sorry for late reply. Somebody else, I want to call them "the guys", at the server side has done some configuration changes. The changes also stopped some other scripts hosted on the server. I have tracked all of them and made the server guys reverted back. Now it works like a charm.

I am sorry for the mess in this topic. I should have looked carefully to our server configuration before starting a new topic. I think there is not need to report this as a bug.

Thank you for all your support.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.558 seconds
Imprint                   Data Protection Statement                  Revocation information and revocation form