The download script is:
$query_string = $_SERVER['QUERY_STRING'];
require_once ("path_to/phpdocx_pro_conv/classes/CreateDocx.inc");
$docx = new CreateDocx();
$docx->enableCompatibilityMode();
$html = 'http://domain.com/html_file.php?'.$query_string.'';
$docx->embedHTML($html, array('isFile' => true));
$file_name = $row['contract_name'].' (Long Agreement)';
$docx->createDocx('tmp/'.$file_name.'');
$docx->transformDocx('tmp/'.$file_name.'', ''.$file_name.'');