The Metadata Anonymisation Toolkit will remove metadata from PDFs, but the library they use to do this creates huge PDFs (like 10 times bigger) as output. You may have better luck with it though. https://mat.boum.org/