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

public function createDocxAndDownload(string title = ‘document’, array paramsDocument = array())

Parameters

title

  • filename of the document



$paramsDocument

  • ‘orient’ (page orientation) :’landscape’
  • ‘top’ (top margin) : 4000,..
  • ‘bottom’ (bottom margin) : 4000,..
  • ‘right’ (right margin) : 4000,..
  • ‘left’ (left margin): 4000,..
  • ‘titlePage’ (if the first page contains the header): 1

Examples

Example 1 Version Pro


require_once '../../classes/CreateDocx.inc';

$docx = new CreateDocx();

$text = 'Lorem ipsum dolor sit amet.';

$docx->addText($text, $paramsText);

$docx->createDocxAndDownload('example_text');

Comments are closed.