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

public function addDOCX(string $pathDOCX)

This method adds an existing DOCX into your Word document.

Parameters

$pathDOCX

Path to DOCX file.

Examples

Example 1 Version Pro


require_once 'classes/CreateDocx.inc';

$docx = new CreateDocx();

$docx->addDOCX('../files/Text.docx');

$docx->createDocx('example_docx');


    One Response

  • Christopher

    I am trying to loop through a list of individual documents so that I can have a multi-page document. However, the only page that shows up in my final document is that last one that I add. How do you make phpdocx create a multi-page document?