DEFAULT_FONT_NAME
DEFAULT_FONT_NAME = \PhpOffice\PhpWord\Settings::DEFAULT_FONT_NAME
Default font settings
PHPWord main class
| None found |
| None found |
DEFAULT_FONT_CONTENT_TYPE = \PhpOffice\PhpWord\Settings::DEFAULT_FONT_CONTENT_TYPE
| None found |
$sections : array<mixed,\PhpOffice\PhpWord\Element\Section>
Collection of sections
| None found |
| None found |
__call(mixed $function, mixed $args) : mixed
Dynamic function call to reduce static dependency
| mixed | $function | |
| mixed | $args |
| since | 0.12.0 |
|---|
getDocInfo() : \PhpOffice\PhpWord\Metadata\DocInfo
Get document properties object
| None found |
getProtection() : \PhpOffice\PhpWord\Metadata\Protection
Get protection
| since | 0.12.0 |
|---|---|
| codeCoverageIgnore |
getCompatibility() : \PhpOffice\PhpWord\Metadata\Compatibility
Get compatibility
| since | 0.12.0 |
|---|
getSettings() : \PhpOffice\PhpWord\Metadata\Settings
Get compatibility
| since | 0.14.0 |
|---|
getSections() : array<mixed,\PhpOffice\PhpWord\Element\Section>
Get all sections
| None found |
getSection(integer $index) : \PhpOffice\PhpWord\Element\Section|null
Returns the section at the requested position
| integer | $index |
| None found |
addSection(array $style = null) : \PhpOffice\PhpWord\Element\Section
Create new section
| array | $style |
| None found |
sortSections(callable $sorter)
Sorts the sections using the callable passed
| callable | $sorter |
| None found |
| None found |
setDefaultFontName(string $fontName)
Set default font name.
| string | $fontName |
| None found |
| None found |
setDefaultFontSize(integer $fontSize)
Set default font size.
| integer | $fontSize |
| None found |
setDefaultParagraphStyle(array $styles) : \PhpOffice\PhpWord\Style\Paragraph
Set default paragraph style definition to styles.xml
| array | $styles | Paragraph style definition |
| None found |
loadTemplate(string $filename) : \PhpOffice\PhpWord\TemplateProcessor
Load template by filename
| string | $filename | Fully qualified filename |
| codeCoverageIgnore |
|---|
save(string $filename, string $format = 'Word2007', boolean $download = false) : boolean
Save to file or download
All exceptions should already been handled by the writers
| string | $filename | |
| string | $format | |
| boolean | $download |
| None found |
createSection(array $settings = null) : \PhpOffice\PhpWord\Element\Section
Create new section
| array | $settings |
| codeCoverageIgnore |
|---|
getDocumentProperties() : \PhpOffice\PhpWord\Metadata\DocInfo
Get document properties object
| codeCoverageIgnore |
|---|
setDocumentProperties(\PhpOffice\PhpWord\Metadata\DocInfo $documentProperties) : self
Set document properties object
| \PhpOffice\PhpWord\Metadata\DocInfo | $documentProperties |
| codeCoverageIgnore |
|---|
getTitles() : \PhpOffice\PhpWord\Collection\Titles
| None found |
getFootnotes() : \PhpOffice\PhpWord\Collection\Footnotes
| None found |
getEndnotes() : \PhpOffice\PhpWord\Collection\Endnotes
| None found |
getCharts() : \PhpOffice\PhpWord\Collection\Charts
| None found |
getComments() : \PhpOffice\PhpWord\Collection\Comments
| None found |
addBookmark(\Element\Bookmark $bookmark) : integer
| \Element\Bookmark | $bookmark |
| None found |
addTitle(\Element\Title $title) : integer
| \Element\Title | $title |
| None found |
addFootnote(\Element\Footnote $footnote) : integer
| \Element\Footnote | $footnote |
| None found |
addEndnote(\Element\Endnote $endnote) : integer
| \Element\Endnote | $endnote |
| None found |
addChart(\Element\Chart $chart) : integer
| \Element\Chart | $chart |
| None found |
addComment(\Element\Comment $comment) : integer
| \Element\Comment | $comment |
| None found |
addParagraphStyle(string $styleName, mixed $styles) : \PhpOffice\PhpWord\Style\Paragraph
| string | $styleName | |
| mixed | $styles |
| None found |
addFontStyle(string $styleName, mixed $fontStyle, mixed $paragraphStyle = null) : \PhpOffice\PhpWord\Style\Font
| string | $styleName | |
| mixed | $fontStyle | |
| mixed | $paragraphStyle |
| None found |
addLinkStyle(string $styleName, mixed $styles) : \PhpOffice\PhpWord\Style\Font
| string | $styleName | |
| mixed | $styles |
| None found |
addTitleStyle(mixed $depth, mixed $fontStyle, mixed $paragraphStyle = null) : \PhpOffice\PhpWord\Style\Font
| mixed | $depth | |
| mixed | $fontStyle | |
| mixed | $paragraphStyle |
| None found |
addTableStyle(string $styleName, mixed $styleTable, mixed $styleFirstRow = null) : \PhpOffice\PhpWord\Style\Table
| string | $styleName | |
| mixed | $styleTable | |
| mixed | $styleFirstRow |
| None found |
addNumberingStyle(string $styleName, mixed $styles) : \PhpOffice\PhpWord\Style\Numbering
| string | $styleName | |
| mixed | $styles |
| None found |