Hello,
That boxes appear when there's some missing font, please check all needed fonts are available to be used by the conversion plugin (https://www.phpdocx.com/documentation/cookbook/good-practices-with-fonts). Do you see that characters in the DOCX output before transforming it into PDF?
Regards.