Hello,
Everything looks correct. There are no more steps to add the macro.
Please rename the function macro name from:
Sub LosslessCompressionPdf(cFile)
to
Sub LosslessPdf(cFile)
and try again.
If after doing this change you still can't generate the document, if you send to contact[at]phpdocx.com SSH access and the path where phpdocx is installed we'll check it.
Regards.