Register Lost your password?
Full api documentation: full api documentation FREE version full api documentation PRO version

public function addProperties(array $values)

This method sets the properties in your Word document.

Parameters

$values

‘title’, ’subject’, ‘creator’, ‘keywords’, ‘description’, ‘category’, ‘manager’, ‘custom’ (’name’, ‘value’)

Examples

Example 1 Version Pro


require_once 'classes/CreateDocx.inc';

$docx = new CreateDocx();

$paramsProperties = array(
    'title' => 'my title',
    'subject' => 'my subject',
    'creator' => 'the creator',
    'keywords' => 'my keywords',
    'description' => 'my description',
    'category' => 'my category',
    'custom' => array(
        array(
            'title' => 'my title 1',
            'value' => 'my content 1'),
        array(
            'title' => 'my title 2',
            'value' => 'my content 2'),
        array(
            'title' => 'my title 3',
            'value' => 'my content 3')
    )
);
$docx->addProperties($paramsProperties);

$docx->createDocx('example_properties');


Comments are closed.