API Documentation
Word content
Format conversion
CryptoPHPDOCX
Digital Signature package
parseStyles
Generates a Word document with the available styles
PRO, PRO+ and CORPORATE PHPDocX >= 2.5
Description
public function parseStyles (string $path)
Parameters
path
The path to the Word document from which we want to import the styles. If empty parses the styles of the current base template.
Return values
Void.
Code samples
Example #1: generates a document with available styles and sample code
require_once 'classes/CreateDocx.inc';
$docx = new CreateDocx();
$docx->parseStyles();
$docx->createDocx('available_styles');
The resulting Word document looks like (download .docx file):
Change log
- Available since 2.5
Available examples
See also
PHPDocx. Dinamic generation of reports in .docx format 


