These two files, pdf_linkchecker.py and pdf_fontchecker.py are code examples to go along with a blog article: http://reachtim.com/articles/PDF-Testing.html
See the article for details on how to test your PDFs for broken internal and external links and for unembedded fonts.