Give more useful error message if '-t pdf' is specified.

Closes #1155.