tecnickcom / tcexam

TCExam is a CBA (Computer-Based Assessment) system (e-exam, CBT - Computer Based Testing) for universities, schools and companies, that enables educators and trainers to author, schedule, deliver, and report on surveys, quizzes, tests and exams.
http://www.tcexam.org
Other
564 stars 400 forks source link

pdf problem #425

Open ParmaU opened 5 months ago

ParmaU commented 5 months ago

HI I updated the system to the latest version 16.3.1 when creating the PDFs I noticed that something isn't working, it doesn't seem to wrap to a new line Screenshot 2024-04-19 110607

Nguyenhphuc commented 4 months ago

I also have the same problem, I'm from Vietnam, and when exporting to PDF, there is a font error. Capture Capture1

drajar commented 4 months ago

I have the same problem.

I solve this issue by modifying line: https://github.com/tecnickcom/tcexam/blob/adfbc1ec255f4ad0d443f7464b11ed3d95a21e32/shared/tcpdf/tcpdf.php#L17302C97-L17302C101

public function writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=false, $reseth=true, $align='', $autopadding=true)

in

public function writeHTMLCell($w, $h, $x, $y, $html='', $border=0, $ln=0, $fill=false, $reseth=false, $align='', $autopadding=true)

Nguyenhphuc commented 4 months ago

thanks so much! i will try...

ParmaU commented 4 months ago

hello thanks for the information, but in my case the problem remains even making the recommended change does not improve the situation and the problem remains