Attribute ‘barred’

May 25, 2010 at 9:09 AM

Hi, Is it possible to set the attribute ‘barred’ for a text.

 

array(‘name’=>’Arial’,…,’barred’=>true); (for exemple)

 

Best regards

May 25, 2010 at 9:28 AM
Edited May 25, 2010 at 9:30 AM

What do you mean by "barred"? If you want a Strikethrough, then I suppose at present there are no such option. Following are the options for font styling :

$this->_type = $type; 
$this->_name = 'Arial';
$this->_size = 20;
$this->_bold = false;
$this->_italic = false;
$this->_superScript = false;
$this->_subScript = false;
$this->_underline = PHPWord_Style_Font::UNDERLINE_NONE;
$this->_color = '000000'; $this->_fgColor = null;
$this->_align = null;
$this->_spaceBefore = null;
$this->_spaceAfter = null;

May 25, 2010 at 1:29 PM

Yes I mean Strikethrough of course.

 

i made a small change in PHPWord to have the Strikethrough property.

 

May 25, 2010 at 2:11 PM

Thats nice.

Please share such that others can also use.

Jun 2, 2010 at 6:40 AM

Yes, with pleasure.

How can I share my work?

Jun 2, 2010 at 7:55 AM

i made a small change in PHPWord to have the Strikethrough property.

Whatever changes you made, you can post here. Put down in which file and what changes you made. And change the title of the thread from "barred" to "Strikethrough".
Feb 7, 2014 at 6:01 AM
jep33 wrote:
Yes I mean Strikethrough of course.   i made a small change in PHPWord to have the Strikethrough property.  
Hi,

I have same requirement . can you please help me?

Thanks,
Jaffar
Feb 7, 2014 at 6:23 AM
Hi,

I have sorted out my self.

you can pass array as styletext and in that array mention 'strikethrough'=>true.