contao/test — Issue #858: Bugfix: Zeilenumbruch in dompdf
Author: importer
Created: 2011-11-28 17:32:21+00:00
State: open
Labels: Defect, plugins

in dompdf kommt es zu unsauberen Zeilenumbruechen, sofern man UTF-8 kodierten Text drucken lassen will.

Um dies zu beheben muss man in
/system/modules/dompdf/resources/include/text_frame_decorator.cls.php
in der Routine split_text

die Zeile:
--
$split = $this->_frame->get_node()->splitText($offset);
--
ersetzen durch:
--
$text = $this->_frame->get_node()->nodeValue;
$split = $this->_frame->get_node()->splitText($offset);
$this->_frame->get_node()->nodeValue = mb_substr($text,0,$offset);
$split->nodeValue = mb_substr($text,$offset);
--

Siehe auch dompdf Forumsthread unter:
http://www.dashinteractive.net/dompdf/index.php?v=3153736

--- _Originally created by xtra on July 9th, 2009, at 05:46pm (ID 858)_