Quantcast
Channel: PHPWord
Browsing all 450 articles
Browse latest View live

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 Article


New Post: setValue and addImage

Excuse,have you solved it? I need this. Thanks!

View Article


New 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 Article

New 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 Article

Created 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 Article


New 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 Article

New 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 Article

New Post: Template setValue with caractère "&" - File corrupt

Other caractere....$client = str_replace(array("&",'>','<'), array("&amp;","&gt;","&lt;"), $client);

View Article


New Post: Template setValue with caractère "&" - File corrupt

Thanks

View Article


New 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 Article

Reviewed: 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 Article

New 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 Article

New 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 Article


New Post: TOC spacing

Hi Is it possible to set TOC spacing? It seems that default value is spacingAfter 10pt. Thanks.

View Article

New 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 Article


New 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 Article

New Post: Fix problem utf8 caracters special accents and ñ

Thanks, you save me the day! :-)

View Article


New 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 Article

New 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 Article

New 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
Browsing all 450 articles
Browse latest View live


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