News

How to mark a document as final in PHPdocx

  • May 03, 2011


If you need to mark a document as final, simply add one extra line at your code to mark it ($docx->setMarkAsFinal();)
This is an example of how to do it.


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

$docx = new CreateDocx();

$docx->addText('Lorem ipsum dolor sit amet.');

// This line marks the document as Final. You could add at any document need it.
$docx->setMarkAsFinal();

$docx->createDocx('example_markasfinal');