This commit is contained in:
Roman Syroeshko 2015-08-16 19:13:14 +04:00
parent eff9ca22cb
commit e351717f3e
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ $subsequent->addImage('resources/_mars.jpg', array('width' => 80, 'height' => 80
// Add footer
$footer = $section->addFooter();
$footer->addPreserveText(htmlspecialchars('Page {PAGE} of {NUMPAGES}.'), array('align' => 'center'));
$footer->addPreserveText(htmlspecialchars('Page {PAGE} of {NUMPAGES}.'), null, array('align' => 'center'));
$footer->addLink('http://google.com', htmlspecialchars('Direct Google'));
// Write some text

View File

@ -57,8 +57,8 @@ class PreserveTextTest extends \PHPUnit_Framework_TestCase
{
$oPreserveText = new PreserveText(
'text',
array('align' => 'center'),
array('marginLeft' => 600, 'marginRight' => 600, 'marginTop' => 600, 'marginBottom' => 600)
array('size' => 16, 'color' => '1B2232'),
array('align' => 'center')
);
$this->assertInstanceOf('PhpOffice\\PhpWord\\Style\\Font', $oPreserveText->getFontStyle());
$this->assertInstanceOf(