Coder Social home page Coder Social logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Sorry the function name is split_text, not strip_text

Original comment by [email protected] on 29 Jun 2009 at 12:52

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024

Original comment by eclecticgeek on 4 Jan 2010 at 10:39

  • Changed title: *split_text function (text_frame_decorator.cls.php) requires PHP > 5.2.6 for multibytes strings *

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Hi, I'm having the same problem, but I have PHP 5.2.9 and also your fix don't 
work.

Any thoughts?

Original comment by [email protected] on 6 Jan 2010 at 1:31

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Issue 146 has been merged into this issue.

Original comment by eclecticgeek on 24 Apr 2010 at 2:18

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Issue 163 has been merged into this issue.

Original comment by fabien.menager on 20 Jul 2010 at 11:13

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
This issue was closed by revision r285.

Original comment by fabien.menager on 20 Jul 2010 at 11:35

  • Changed state: Fixed

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Fixed in r285

Original comment by fabien.menager on 20 Jul 2010 at 11:35

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
This solution didn't solve my problem (i use PHP 5.3.2 on Ubuntu), after i 
replace that function DOMPDF continued breaking words very bad.
I tried with something somebody posted on the following link and it solved it 
all:
http://www.dashinteractive.net/dompdf/index.php?v=3153736

What tommylacroix proposes is:

function split_text($offset) {
    if ( $offset == 0 )
      return;

    $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);
    $deco = $this->copy($split);
    $p = $this->get_parent();
    $p->insert_child_after($deco, $this, false);

    if ( $p instanceof Inline_Frame_Decorator )
      $p->split($deco);
}


Best regards from Colombia

Original comment by [email protected] on 22 Feb 2011 at 4:08

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
PHP 5.3 doesn't have the bug in the splitText() method, so this patch is 
irrelevant.

Original comment by [email protected] on 22 Feb 2011 at 4:18

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024
Issue 146 has been merged into this issue.

Original comment by eclecticgeek on 13 Sep 2012 at 6:13

from dompdf.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 15, 2024

Original comment by eclecticgeek on 30 May 2013 at 5:15

  • Added labels: Restrict-AddIssueComment-Commit

from dompdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.