Merged #495.
This commit is contained in:
parent
eff9ca22cb
commit
e351717f3e
@ -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
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user