Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

New Post: Help needed on addText()

$
0
0
Got it... change the addText function in Section.php to:
public function addText($text, $styleFont = null, $styleParagraph = null) {
    $givenText = $text;
    $text = new PHPWord_Section_Text($givenText, $styleFont, $styleParagraph);
    $this->_elementCollection[] = $text;
    return $text;
}
I removed the utf8_encode function. Hope its of any help to someone...

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>