GH-89 : Example in README.md is broken
This commit is contained in:
parent
ebb7d047d2
commit
db5252541d
|
|
@ -63,10 +63,12 @@ $PHPWord->addFontStyle('myOwnStyle', array('name'=>'Verdana', 'size'=>14, 'color
|
|||
$section->addText('Hello world! I am formatted by a user defined style', 'myOwnStyle');
|
||||
|
||||
// You can also putthe appended element to local object an call functions like this:
|
||||
$fontStyle = new PHPWord_Style_Font();
|
||||
$fontStyle->setBold(true);
|
||||
$fontStyle->setName('Verdana');
|
||||
$fontStyle->setSize(22);
|
||||
$myTextElement = $section->addText('Hello World!');
|
||||
$myTextElement->setBold();
|
||||
$myTextElement->setName('Verdana');
|
||||
$myTextElement->setSize(22);
|
||||
$myTextElement->setFontStyle($fontStyle);
|
||||
|
||||
// At least write the document to webspace:
|
||||
$objWriter = PHPWord_IOFactory::createWriter($PHPWord, 'Word2007');
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ Changes in branch for release 0.7.1 :
|
|||
- Bugfix: (gabrielbull) - Fixed bug with cell styling
|
||||
- Bugfix: (gabrielbull) - Fixed bug list items inside of cells
|
||||
- Bugfix: (SiebelsTim) GH-51 - Adding a value that contains "&" in a template breaks it
|
||||
- Bugfix: (Progi1984) GH-89 - Example in README.md is broken
|
||||
- Feature: (RomanSyroeshko) GH-56 GH-57 - Template : Permit to save a template generated as a file (PHPWord_Template::saveAs())
|
||||
- Feature: (gabrielbull) - Word2007 : Support sections page numbering
|
||||
- Feature: (gabrielbull) - Word2007 : Added support for line height
|
||||
|
|
|
|||
Loading…
Reference in New Issue