Comments (11)
Sorry the function name is split_text, not strip_text
Original comment by [email protected]
on 29 Jun 2009 at 12:52
from dompdf.
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.
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.
Issue 146 has been merged into this issue.
Original comment by eclecticgeek
on 24 Apr 2010 at 2:18
from dompdf.
Issue 163 has been merged into this issue.
Original comment by fabien.menager
on 20 Jul 2010 at 11:13
from dompdf.
This issue was closed by revision r285.
Original comment by fabien.menager
on 20 Jul 2010 at 11:35
- Changed state: Fixed
from dompdf.
Fixed in r285
Original comment by fabien.menager
on 20 Jul 2010 at 11:35
from dompdf.
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.
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.
Issue 146 has been merged into this issue.
Original comment by eclecticgeek
on 13 Sep 2012 at 6:13
from dompdf.
Original comment by eclecticgeek
on 30 May 2013 at 5:15
- Added labels: Restrict-AddIssueComment-Commit
from dompdf.
Related Issues (20)
- What about vietnamese font in dompdf ver0.6.0? HOT 2
- HTML table border style is not working HOT 1
- multiple pga egeneration issue with dompdf HOT 1
- problem of generating views of joomla 2.5 HOT 1
- Second page and on dosen't respect top margin HOT 1
- Display headers and footers in all pages
- Having error issues with Unlink and drupal
- text overlapping at start of pdf when table row exceeds the length of the page
- rowspan is not working while page breaks HOT 1
- This is a fix for issue 91 - infinite loop
- PDF Merger in dompdf
- ..
- Error sub-setting in DOMPDF
- Image is cut end of the page.
- Problem in generating pdf in kannada
- Warning: DOMXPath::query(): Invalid expression in
- about ISSUE 91, I have found a fix.
- List issues in page break
- Damaged PDF
- How to generate barcode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dompdf.