\PhpOffice\PhpWord\Writer\RTF\PartHeader

RTF header part writer

  • Character set
  • Font table
  • File table (not supported yet)
  • Color table
  • Style sheet (not supported yet)
  • List table (not supported yet)

Summary

Methods
Properties
Constants
__construct()
write()
setParentWriter()
getParentWriter()
getFontTable()
getColorTable()
No public properties found
No constants found
No protected methods found
$escaper
N/A
writeCharset()
writeDefaults()
writeFontTable()
writeColorTable()
writeGenerator()
registerFont()
registerBorderColor()
registerFontItems()
registerTableItem()
$parentWriter
$fontTable
$colorTable
N/A

Properties

$fontTable

$fontTable : array

Font table

Type

array

$colorTable

$colorTable : array

Color table

Type

array

Methods

__construct()

__construct() 

write()

write() : string

Write part

Returns

string

getFontTable()

getFontTable() : array

Get font table.

Returns

array

getColorTable()

getColorTable() : array

Get color table.

Returns

array

writeCharset()

writeCharset() : string

Write character set

Returns

string

writeDefaults()

writeDefaults() : string

Write header defaults

Returns

string

writeFontTable()

writeFontTable() : string

Write font table

Returns

string

writeColorTable()

writeColorTable() : string

Write color table

Returns

string

writeGenerator()

writeGenerator() : string

Write

Returns

string

registerFont()

registerFont() 

Register all fonts and colors in both named and inline styles to appropriate header table.

registerBorderColor()

registerBorderColor(\PhpOffice\PhpWord\Style\Border  $style) 

Register border colors.

Parameters

\PhpOffice\PhpWord\Style\Border $style

registerTableItem()

registerTableItem(  $table, string  $value, string  $default = null) 

Register individual font and color.

Parameters

$table
string $value
string $default