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

public function addShape(string $type, array $style = ”)

This method inserts a shape into your Word document.

Parameters

$type

line

$style

  • width: 300, 400…
  • height: 300, 400…

Examples

Example 1 Version Pro


require_once 'classes/CreateDocx.inc';

$docx = new CreateDocx();

$type = 'line';

$paramsShape = array(
    'width'     => 0,
    'height'    => 0
);

$docx->addShape($type, $paramsShape);

$docx->createDocx('example_shape');


Comments are closed.