This commit is contained in:
Roman Syroeshko 2014-03-22 15:36:17 +04:00
parent 9c6d07aaeb
commit 0c449a6a0c
19 changed files with 19 additions and 19 deletions

View File

@ -82,7 +82,7 @@ We're reorganizing our documentation. Below are some of the most important thing
The following is a basic example of the PhpWord library. More examples are provided in the [samples folder](samples/).
```php
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Every element you want to append to the word document is placed in a section.
// To create a basic section:

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , " Create new PhpWord object" , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
$phpWord->addFontStyle('rStyle', array('bold' => true, 'italic' => true, 'size' => 16));
$phpWord->addParagraphStyle('pStyle', array('align' => 'center', 'spaceAfter' => 100));
$phpWord->addTitleStyle(1, array('bold' => true), array('spaceAfter' => 240));

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Ads styles
$phpWord->addParagraphStyle('multipleTab', array(

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// New portrait section
$section = $phpWord->createSection(array('borderColor' => '00FF00', 'borderSize' => 12));

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Ads styles
$phpWord->addParagraphStyle('pStyle', array('spacing'=>100));

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , " Create new PhpWord object" , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
$filler = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. ' .
'Nulla fermentum, tortor id adipiscing adipiscing, tortor turpis commodo. ' .
'Donec vulputate iaculis metus, vel luctus dolor hendrerit ac. ' .

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , " Create new PhpWord object" , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// New portrait section
$section = $phpWord->createSection();

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s') , " Create new PhpWord object" , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
$document = $phpWord->loadTemplate('resources/Sample_07_TemplateCloneRow.docx');

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s') , " Create new PhpWord object" , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
$phpWord->setDefaultParagraphStyle(array(
'align' => 'both',
'spaceAfter' => PhpOffice\PhpWord\Shared\Font::pointSizeToTwips(12),

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
$section = $phpWord->createSection();
$header = array('size' => 16, 'bold' => true);

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word Document
echo date('H:i:s') , ' Create new PhpWord object' , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
$section = $phpWord->createSection();
$header = array('size' => 16, 'bold' => true);
//1.Use EastAisa FontStyle

View File

@ -6,7 +6,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s') , " Create new PhpWord object" , EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// New portrait section
$section = $phpWord->createSection();

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code
$section = $phpWord->createSection();

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code
$section = $phpWord->createSection();

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code
$section = $phpWord->createSection();

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code
$section = $phpWord->createSection();

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code
$section = $phpWord->createSection();

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code

View File

@ -10,7 +10,7 @@ require_once '../src/PhpWord.php';
// New Word document
echo date('H:i:s'), " Create new PhpWord object", EOL;
$phpWord = new PhpOffice\PhpWord();
$phpWord = new PhpOffice\PhpWord\PhpWord();
// Begin code
$fontStyle = array('size' => 24);