PHP Word

PHPWord is a

pure PHP library for reading and writing Word

, ODT, and RTF

files

.

This file is the

source file

to test the

rea

d/write capabilites of

PHPWord

.

 

PHPWord can apply font formats such as

name and size

,

bold

,

italics

,

color

,

underline

,

strikethrough

,

double strikethrough

,

small caps

,

all caps

,

subscript

,

superscript

, or

highlighted

.

You may also notice that there’s

one

text break (empty paragr

aph) before this one that can be created also by PHPWord

1

.

PHPWord can also format paragraph such as this

justified

,

12pt before and 12pt after with 1.5 lines spacing paragraph. This formatting can be applied inline or using predefined style as we use to do in Word.

 

PHPWord can also create multicolumn paragra

ph which is treated as a new section with continous break type. We can define

either the number of columns or spacing between the columns.

 

Lists

PHPWord can create bulleted lists …

Point 1

Point 2

… and numbered lists too.

One

Two

Three

Tables

Tables are also easy to be made by using PHPWord.

A

2

B

3

 

C

D

 

 

Images

PHPWord can insert images in your documents.

 


End note

Rowspan

Colspan