Hello,
phpdocx 3.7 doesn't have support to transform PDF to images and these methods of your code: convert_from_pdf, add_image_to_doc, are not from the API of phpdocx; they are custom methods of your project.
For further support and check your project you can purchase tickets on:
http://www.phpdocx.com/support
Regards.