Hello,
It's a solution only for very simple DOCX documents. To use that class we recommend you to use the generateHTML method and then use the latest version of DOMPDF or TCPDF to transform the HTML to PDF (the TransformDoc class is available in the trial package too).
Anyway, the recommended solution to transform DOCX to PDF among other document formats is the conversion plugin available in Advanced and Premium licenses.
Regards.