New Post: Check system requirements are met
Hi I'm having trouble getting PHPWord to work on my webserver. I have the correct version of PHP and the ZipArchive extension appears to be present, but I'm confused about the "xmllib" extension. How...
View ArticleNew Post: How to merge two word documents with pictures?
Can anyone help me? Please. I have a problem and I can not find a solution. 1- I need merge two word documents with pictures. 2- Or something like "setValue" for images. Replace text to image. The...
View ArticleNew Post: Line breaks after image.
Hi The above solution works fine for section. How can I use it for header as when I use it in header, the doc gets corrupt. Please help !!!
View ArticleCreated Unassigned: PageSizeH and PageSizeW don't work in github version [81]
Hello,I have custom sized paper I need to dynamically create in PHP and while this worked in the old .6 version, it no longer works with the github version. Am I doing something wrong?```$twips =...
View ArticleNew Post: Template setValue with caractère "&" - File corrupt
I find a tempory solution! use the function htmlentities $template = $PHPWord->loadTemplate('Client.docx'); $client = htmlentities("Ben&Nuts"); $template->setValue('CLIENTE', $cliente);...
View ArticleNew Post: Template setValue with caractère "&" - File corrupt
hi, I'm sorry for my first reply. htmlentities resolve the problem with "&" but when you have "é" or other accented letter, the output from the page is corrupt. I find only the problem with "&"...
View ArticleNew Post: Template setValue with caractère "&" - File corrupt
Other caractere....$client = str_replace(array("&",'>','<'), array("&",">","<"), $client);
View ArticleNew Post: how to let line not breaks after addtext
hi there i've got a problem that is i need to creat a string with different size of word here is example $section->addText(" "); $section->addText("a",array('size'=>15));...
View ArticleReviewed: PHPWord 0.6.2-1 Beta (九月 02, 2014)
Rated 5 Stars (out of 5) - Hello, may I know if you are interested to find Sponsor for your product? And we want to be your sponsor. Please mail me cxienancy@gmail.com for detailed information. Thank...
View ArticleNew Post: layout text in Vertical with addtext( )
hi there i got problems again is that if someone can addText in Vertical way like :t h i s i s e x a m p l e thanks!!
View ArticleNew Post: default grammar language
Is there any chance to set default grammar language? I'v generated word doc, but all text is undelined because of language difference. Of course i can set the default grammar lang in my word settings...
View ArticleNew Post: TOC spacing
Hi Is it possible to set TOC spacing? It seems that default value is spacingAfter 10pt. Thanks.
View ArticleNew Post: TOC not working?
Hii wanglei_estar, I can see the Page number in TOC, but it does not seems to be correct page number. Any help?
View ArticleNew Post: How can I open an existing word doc?
I'd like to know how to open an existing word document and edit it... Some can help me?
View ArticleNew Post: Fix problem utf8 caracters special accents and ñ
Thanks, you save me the day! :-)
View ArticleNew Post: Calling addText() method gives a line break at the end of string
My workaround is to use a template that has all the formats I need. $PHPWord = new PHPWord(); $document = $PHPWord->loadTemplate('Template.docx'); $document->setValue('XXXX', 'Sun');...
View ArticleNew Post: How can I open an existing word doc?
Hi, you can use template Class as this example $PHPWord = new \PhpOffice\PhpWord\PhpWord(); $document = $PHPWord->loadTemplate("example.docx"); after open you can change values inside doc (but every...
View ArticleNew Post: Can't save text in Herew
Hi, When I create a docx file with Hebrew letters, all I get is:××× ×× ××× Can you please assist? Thanks!
View Article