Phpdocx uses a XSL file to do DOCX->HTML, and dompdf to do HTML->PDF. So if you want to save PDF as a file you should use dompdf functions.
The example you request is not available in phpdocx free; you can buy phpdocx pro or get a ticket support.
Regards.