View Issue Details

This bug affects 1 person(s).
 6
IDProjectCategoryView StatusLast Update
04768Bug reportsStatisticspublic2010-12-07 14:14
Reporterjonas Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.90+ 
Fixed in Version1.90+ 
Summary04768: Graph images not scaled properly when exported to PDF
Description

In "get some statistics from these responses", you could let LimeSurvey print out some nice graphs for you. When you choose HTML, graph images is showed properly. But when you choose PDF instead, graph images will not be scaled down properly and therefore it will look bad.

Steps To Reproduce

Have a survey with some filled in answers. Go to "get some statistics from these responses". Choose some responses to show. Choose show graphs and output format: pdf.

TagsNo tags attached.
Attached Files
good-bad-prntscrn.png (44,458 bytes)   
good-bad-prntscrn.png (44,458 bytes)   
Bug heat6
Complete LimeSurvey version number (& build)9522
I will donate to the project if issue is resolvedNo
Browser
Database type & version9522
Server OS (if known)Windows
Webserver software & version (if known)Wamp 2.0
PHP Version5.3.0

Users monitoring this issue

jonas

Activities

jonas

jonas

2010-11-28 01:04

reporter   ~13638

How to fix:
admin/statistics_function.php line: 3055

Change:
$pdf->Image($tempdir."/".$cachefilename, 5, 70, 200, 200, '', $homeurl."/admin.php?sid=$surveyid", 'B', true, 150,'',false,false,0,true);

to->

$pdf->Image($tempdir."/".$cachefilename, 25, 70, 160, 200, '', $homeurl."/admin.php?sid=$surveyid", 'B', true, 150,'',false,false,0,true);

25 putes the picture towards the centre.
160 is half of 320 which is the original width size.

jonas

jonas

2010-11-28 01:06

reporter   ~13639

Has tried this originally in a linux webhosting enviroment with same problems.

c_schmitz

c_schmitz

2010-11-28 02:15

administrator   ~13646

Please attach an export of your survey. Thank you.

c_schmitz

c_schmitz

2010-11-28 02:42

administrator   ~13649

I can't see any distorted graphs in your PDF file. Maybe your viewer really has a bug?

jonas

jonas

2010-11-28 13:07

reporter   ~13651

Last edited: 2010-11-28 13:09

Tried Foxit Reader and there where no distortion!

So, apparently Adobe Reader 9.3.3 got a bug. Or TCPDF, doesn't render it properly?

c_schmitz

c_schmitz

2010-11-28 13:58

administrator   ~13653

Well, update Adobe Reader to 9.4 first.

jonas

jonas

2010-11-28 14:22

reporter   ~13655

Did so - same problem.

c_schmitz

c_schmitz

2010-11-28 14:46

administrator   ~13656

I now installed Adobre Reader 10 and your file looks fine here too.
I think something is wrong with your Adobe installation.

jonas

jonas

2010-11-28 15:34

reporter   ~13657

Last edited: 2010-11-28 15:38

Tried on a diffrent windows machine with latest updates. Same problem
Tried even on a third diffrent machine, with Ubuntu 10.10 with latest updates using Adobe Reader 9.4. Same problem.
I have also tried to open the PDF in Acrobat X Pro. Same problem.

It must be a bug withtin the Adobe PDF rendering or at TCPDF?

c_schmitz

c_schmitz

2010-11-28 16:05

administrator   ~13659

Can you attach a screenshot of how you see the attached PFD file distorted?

c_schmitz

c_schmitz

2010-11-29 21:26

administrator   ~13666

Last edited: 2010-11-29 21:29

When viewing the file do the following in Adobe ACrobat Reader.
GO to Edit/Preferences. Choose Page Display and on the right set set Resoltion ti use the System setting. Also set Rendering to 'For Screen display'.
Save and notice that it looks okay now - so Adobe is to blame.

For that much support & effort you should seriously consider a donation to the LimeSurvey project.

c_schmitz

c_schmitz

2010-12-07 14:14

administrator   ~13710

Released in latest 1.90+ version.

Issue History

Date Modified Username Field Change
2010-11-28 01:01 jonas New Issue
2010-11-28 01:04 jonas Note Added: 13638
2010-11-28 01:06 jonas Note Added: 13639
2010-11-28 01:08 jonas Issue Monitored: jonas
2010-11-28 01:35 c_schmitz Status new => resolved
2010-11-28 01:35 c_schmitz Fixed in Version => 1.90+
2010-11-28 01:35 c_schmitz Resolution open => fixed
2010-11-28 01:35 c_schmitz Assigned To => c_schmitz
2010-11-28 02:15 c_schmitz Status resolved => assigned
2010-11-28 02:15 c_schmitz Note Added: 13646
2010-11-28 02:16 c_schmitz Status assigned => resolved
2010-11-28 02:33 jonas File Added: Enkt_25142_cv.pdf
2010-11-28 02:42 c_schmitz Note Added: 13649
2010-11-28 13:07 jonas Note Added: 13651
2010-11-28 13:09 jonas Note Edited: 13651
2010-11-28 13:58 c_schmitz Note Added: 13653
2010-11-28 14:22 jonas Note Added: 13655
2010-11-28 14:46 c_schmitz Note Added: 13656
2010-11-28 15:34 jonas Note Added: 13657
2010-11-28 15:38 jonas Note Edited: 13657
2010-11-28 16:05 c_schmitz Note Added: 13659
2010-11-28 21:00 jonas File Added: good-bad-prntscrn.png
2010-11-29 21:26 c_schmitz Note Added: 13666
2010-11-29 21:29 c_schmitz Note Edited: 13666
2010-12-07 14:14 c_schmitz Note Added: 13710
2010-12-07 14:14 c_schmitz Status resolved => closed
2021-08-05 08:44 guest Bug heat 4 => 6