Add PDF detection

For great awesomeness.