gpg --clearsign of latex-based pdf is damaged/corrupted

Based on the information found in this post, this solution worked for me

gpg --clearsign --output=signed.pdf --not-dash-escaped input.pdf

The --not-dash-escaped avoids the file corruption/display issues with pdf viewers.