parseStyles

parseStyles

BASIC / ADVANCED / PREMIUM

Generates a Word document with the available styles.

Description
public parseStyles ( string $path )

This method generates an auxiliary Word document with all the available styles in a given Word document.

With the help of this method you may generate a Word document indicating not only the available styles but also how they they can be used with the addText, addTable and addList methods.

Parameters

path

The path to the Word document from which you want to import the styles. If empty parses the styles of the current base template.

Return values

Void.

Code samples

Example #1

The resulting Word document looks like: